mirror of
https://github.com/lxsang/ant-http
synced 2025-07-26 10:39:45 +02:00
feat: rework on plugin support
All checks were successful
gitea-sync/ant-http/pipeline/head This commit looks good
All checks were successful
gitea-sync/ant-http/pipeline/head This commit looks good
- New plugin interface that supports multiple instances - Fix and improve memory bugs - Refactory and cleanup lib - Improve scheduler
This commit is contained in:
@ -533,7 +533,7 @@ void antd_scheduler_destroy(antd_scheduler_t *scheduler)
|
||||
*/
|
||||
antd_task_t *antd_create_task(void *(*handle)(void *), void *data, void *(*callback)(void *), time_t atime)
|
||||
{
|
||||
antd_task_t *task = (antd_task_t *)malloc(sizeof *task);
|
||||
antd_task_t *task = (antd_task_t *)malloc(sizeof(antd_task_t));
|
||||
task->stamp = (unsigned long)time(NULL);
|
||||
task->data = data;
|
||||
task->handle = handle;
|
||||
|
Reference in New Issue
Block a user