Lely core libraries
2.2.5
|
A thread-local event loop. More...
Data Fields | |
struct sllist | queue |
The queue of pending tasks. | |
size_t | ntasks |
The number of pending tasks. More... | |
int | stopped |
A flag specifying whether the event loop is stopped. | |
int | running |
A flag specifying whether ev_exec_run() is running on this thread. | |
A thread-local event loop.
Definition at line 52 of file thrd_loop.c.
size_t ev_thrd_loop::ntasks |
The number of pending tasks.
This equals the number tasks in queue plus the number of calls to ev_exec_on_task_init() minus those to ev_exec_on_task_init(). ev_thrd_loop_stop() is called once this value reaches 0.
Definition at line 61 of file thrd_loop.c.