24 #ifndef LELY_EV_THRD_LOOP_HPP_
25 #define LELY_EV_THRD_LOOP_HPP_
An abstract task executor. This class is a wrapper around #ev_exec_t*.
The thread-local event loop.
::std::size_t run() noexcept
static bool stopped() noexcept
static void stop() noexcept
static Executor get_executor() noexcept
::std::size_t run_one() noexcept
static void restart() noexcept
This header file is part of the event library; it contains the C++ interface for the abstract task ex...
This header file is part of the event library; it contains the thread-local event loop declarations.
size_t ev_thrd_loop_run(void)
If the thread-local event loop is not stopped, run all available tasks.
void ev_thrd_loop_stop(void)
Stops the thread-local event loop.
ev_exec_t * ev_thrd_loop_get_exec(void)
Returns a pointer to the executor corresponding to 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.