An abstract task executor. This class is a wrapper around ev_exec_t*
.
More...
#include <exec.hpp>
|
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 |
|
An abstract task executor. This class is a wrapper around ev_exec_t*
.
Definition at line 38 of file exec.hpp.
◆ on_task_init()
void lely::ev::Executor::on_task_init |
( |
| ) |
|
|
inlinenoexcept |
◆ on_task_fini()
void lely::ev::Executor::on_task_fini |
( |
| ) |
|
|
inlinenoexcept |
◆ dispatch() [1/2]
bool lely::ev::Executor::dispatch |
( |
ev_task & |
task | ) |
|
|
inlinenoexcept |
◆ 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 |
◆ post() [1/2]
void lely::ev::Executor::post |
( |
ev_task & |
task | ) |
|
|
inlinenoexcept |
◆ 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 |
◆ defer() [1/2]
void lely::ev::Executor::defer |
( |
ev_task & |
task | ) |
|
|
inlinenoexcept |
◆ 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 |
◆ abort()
bool lely::ev::Executor::abort |
( |
ev_task & |
task | ) |
|
|
inlinenoexcept |
◆ abort_all()
::std::size_t lely::ev::Executor::abort_all |
( |
| ) |
|
|
inlinenoexcept |
◆ run()
void lely::ev::Executor::run |
( |
ev_task & |
task | ) |
|
|
inlinenoexcept |
The documentation for this class was generated from the following file: