Lely core libraries  2.3.4
lely::ev::Executor Class Reference

An abstract task executor. This class is a wrapper around #ev_exec_t*. More...

#include <exec.hpp>

Inheritance diagram for lely::ev::Executor:

Public Member Functions

void on_task_init () noexcept
 
void on_task_fini () noexcept
 
bool dispatch (ev_task &task) noexcept
 
template<class F , class... Args>
typename ::std::enable_if< !::std::is_base_of< ev_task, typename ::std::decay< F >::type >::value, bool >::type dispatch (F &&f, Args &&... args)
 
void post (ev_task &task) noexcept
 
template<class F , class... Args>
typename ::std::enable_if< !::std::is_base_of< ev_task, typename ::std::decay< F >::type >::value >::type post (F &&f, Args &&... args)
 
void defer (ev_task &task) noexcept
 
template<class F , class... Args>
typename ::std::enable_if< !::std::is_base_of< ev_task, typename ::std::decay< F >::type >::value >::type defer (F &&f, Args &&... args)
 
bool abort (ev_task &task) noexcept
 
::std::size_t abort_all () noexcept
 
void run (ev_task &task) noexcept
 

Detailed Description

An abstract task executor. This class is a wrapper around #ev_exec_t*.

Definition at line 38 of file exec.hpp.

Member Function Documentation

◆ on_task_init()

void lely::ev::Executor::on_task_init ( )
inlinenoexcept
See also
ev_exec_on_task_init()

Definition at line 46 of file exec.hpp.

◆ on_task_fini()

void lely::ev::Executor::on_task_fini ( )
inlinenoexcept
See also
ev_exec_on_task_fini()

Definition at line 52 of file exec.hpp.

◆ dispatch() [1/2]

bool lely::ev::Executor::dispatch ( ev_task task)
inlinenoexcept
See also
ev_exec_dispatch()

Definition at line 58 of file exec.hpp.

◆ dispatch() [2/2]

template<class F , class... Args>
typename ::std::enable_if< !::std::is_base_of<ev_task, typename ::std::decay<F>::type>::value, bool>::type lely::ev::Executor::dispatch ( F &&  f,
Args &&...  args 
)
inline
See also
ev_exec_dispatch()

Definition at line 67 of file exec.hpp.

◆ post() [1/2]

void lely::ev::Executor::post ( ev_task task)
inlinenoexcept
See also
ev_exec_post()

Definition at line 75 of file exec.hpp.

◆ post() [2/2]

template<class F , class... Args>
typename ::std::enable_if< !::std::is_base_of<ev_task, typename ::std::decay<F>::type>::value>::type lely::ev::Executor::post ( F &&  f,
Args &&...  args 
)
inline
See also
ev_exec_post()

Definition at line 83 of file exec.hpp.

◆ defer() [1/2]

void lely::ev::Executor::defer ( ev_task task)
inlinenoexcept
See also
ev_exec_defer()

Definition at line 91 of file exec.hpp.

◆ defer() [2/2]

template<class F , class... Args>
typename ::std::enable_if< !::std::is_base_of<ev_task, typename ::std::decay<F>::type>::value>::type lely::ev::Executor::defer ( F &&  f,
Args &&...  args 
)
inline
See also
ev_exec_defer()

Definition at line 99 of file exec.hpp.

◆ abort()

bool lely::ev::Executor::abort ( ev_task task)
inlinenoexcept
See also
ev_exec_abort()

Definition at line 107 of file exec.hpp.

◆ abort_all()

::std::size_t lely::ev::Executor::abort_all ( )
inlinenoexcept
See also
ev_exec_abort()

Definition at line 113 of file exec.hpp.

◆ run()

void lely::ev::Executor::run ( ev_task task)
inlinenoexcept
See also
ev_exec_run()

Definition at line 119 of file exec.hpp.


The documentation for this class was generated from the following file: