Lely core libraries 2.3.4
|
A wait operation suitable for use with a timerqueue. More...
#include <tqueue.hpp>
Public Member Functions | |
template<class F > | |
TimerQueueWait (ev_exec_t *exec, F &&f) | |
Constructs a wait operation with a completion task. | |
template<class F > | |
TimerQueueWait (F &&f) | |
Constructs a wait operation with a completion task. | |
ev::Executor | get_executor () const noexcept |
Returns the executor to which the completion task is (to be) submitted. | |
Additional Inherited Members | |
![]() | |
struct timespec | value |
The absolute expiration time. | |
struct ev_task | task |
The task (to be) submitted upon completion (or cancellation) of the wait operation. | |
int | errc |
The error number, obtained as if by get_errc(), if an error occurred or the operation was canceled. | |
A wait operation suitable for use with a timerqueue.
This class stores a callable object with signature void(std::error_code ec)
, which is invoked upon completion (or cancellation) of the wait operation.
Definition at line 83 of file tqueue.hpp.