Lines Matching refs:task
29 BaseTask *task = HASHMAP_ENTRY(node, BaseTask, hashNode); in TaskKeyCompare() local
31 return (int)task->taskId.fd - taskId->taskId.fd; in TaskKeyCompare()
36 BaseTask *task = HASHMAP_ENTRY(node, BaseTask, hashNode); in TaskGetNodeHasCode() local
37 return task->taskId.fd; in TaskGetNodeHasCode()
48 BaseTask *task = HASHMAP_ENTRY(node, BaseTask, hashNode); in TaskNodeFree() local
49 CloseTask(LE_GetDefaultLoop(), task); in TaskNodeFree()
88 BaseTask *task = GetTaskByFd((EventLoop *)loop, fd); in ProcessEvent() local
89 if (task != NULL) { in ProcessEvent()
91 task->flags |= TASK_FLAGS_INVALID; in ProcessEvent()
93 task->handleEvent((LoopHandle)loop, (TaskHandle)task, oper); in ProcessEvent()
100 LE_STATUS AddTask(EventLoop *loop, BaseTask *task) in AddTask() argument
103 OH_HashMapAdd(loop->taskMap, &task->hashNode); in AddTask()
110 BaseTask *task = NULL; in GetTaskByFd() local
115 task = HASHMAP_ENTRY(node, BaseTask, hashNode); in GetTaskByFd()
118 return task; in GetTaskByFd()
121 void DelTask(EventLoop *loop, BaseTask *task) in DelTask() argument
123 loop->delEvent(loop, task->taskId.fd, in DelTask()
126 OH_HashMapRemove(loop->taskMap, (TaskId *)task); in DelTask()