36#ifndef LELY_EV_THRD_LOOP_H_
37#define LELY_EV_THRD_LOOP_H_
This is the public header file of the event library.
const struct ev_exec_vtbl *const ev_exec_t
An abstract task executor.
This header file is part of the C11 and POSIX compatibility library; it includes <stddef....
size_t ev_thrd_loop_run(void)
If the thread-local event loop is not stopped, run all available tasks.
ev_exec_t * ev_thrd_loop_get_exec(void)
Returns a pointer to the executor corresponding to the thread-local event loop.
void ev_thrd_loop_stop(void)
Stops the thread-local event loop.
size_t ev_thrd_loop_run_one(void)
If the thread-local event loop is not stopped, executes the first task submitted to it,...
void ev_thrd_loop_restart(void)
Restarts a thread-local event loop.
int ev_thrd_loop_stopped(void)
Returns 1 if the thread-local event loop is stopped, and 0 if not.