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_ const struct ev_exec_vtbl *const ev_exec_t
An abstract task executor.
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.
A node in a singly-linked list.
ev_exec_t * exec
A pointer to the executor to which the task is (to be) submitted.
void ev_task_func_t(struct ev_task *task)
The type of function invoked by an executor when a task is run.
This is the public header file of the event library.
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 ...
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...
ev_task_func_t * func
The function to be invoked when the task is run.
This header file is part of the utilities library; it contains the singly-linked list declarations...