Lines Matching defs:task
53 static void DumpWatcherTaskInfo_(const TaskHandle task)
55 INIT_CHECK(task != NULL, return);
56 BaseTask *baseTask = (BaseTask *)task;
70 WatcherTask *task = (WatcherTask *)CreateTask(loopHandle, info->fd, &baseInfo, sizeof(WatcherTask));
71 LE_CHECK(task != NULL, return LE_NO_MEMORY, "Failed to create task");
72 task->base.handleEvent = HandleWatcherEvent_;
73 task->base.innerClose = HandleWatcherTaskClose_;
74 task->base.dumpTaskInfo = DumpWatcherTaskInfo_;
75 task->processEvent = info->processEvent;
76 task->events = info->events;
77 *(uint64_t *)(task + 1) = (uint64_t)context;
80 loop->addEvent(loop, (const BaseTask *)task, info->events);
81 *watcherHandle = (WatcherHandle)task;