Lely core libraries
2.2.5
|
Go to the documentation of this file.
24 #ifndef LELY_EV_THRD_LOOP_HPP_
25 #define LELY_EV_THRD_LOOP_HPP_
76 #endif // !LELY_EV_THRD_LOOP_HPP_
int ev_thrd_loop_stopped(void)
Returns 1 if the thread-local event loop is stopped, and 0 if not.
static void restart() noexcept
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.
::std::size_t run() noexcept
The thread-local event loop.
An abstract task executor. This class is a wrapper around #ev_exec_t*.
static void stop() noexcept
void ev_thrd_loop_stop(void)
Stops the thread-local event loop.
::std::size_t run_one() noexcept
ev_exec_t * ev_thrd_loop_get_exec(void)
Returns a pointer to the executor corresponding to the thread-local event loop.
static bool stopped() noexcept
static Executor get_executor() noexcept
size_t ev_thrd_loop_run(void)
If the thread-local event loop is not stopped, run all available tasks.