Lely core libraries
2.3.4
|
Go to the documentation of this file.
22 #ifndef LELY_EV_TASK_H_
23 #define LELY_EV_TASK_H_
53 #define EV_TASK_INIT(exec, func) \
55 (exec), (func), SLNODE_INIT, NULL \
86 #endif // !LELY_EV_TASK_H_
struct ev_task * ev_task_from_node(struct slnode *node)
Converts a pointer to a node in a queue to the address of the task containing the node.
const struct ev_exec_vtbl *const ev_exec_t
An abstract task executor.
ev_task_func_t * func
The function to be invoked when the task is run.
size_t ev_task_queue_post(struct sllist *queue)
Post the tasks in queue to their respective executors and invokes ev_exec_on_task_fini() for each of ...
size_t ev_task_queue_abort(struct sllist *queue)
Aborts the tasks in queue by invoking ev_exec_on_task_fini() for each of them.
void ev_task_func_t(struct ev_task *task)
The type of function invoked by an executor when a task is run.
A node in a singly-linked list.
ev_exec_t * exec
A pointer to the executor to which the task is (to be) submitted.