Lely core libraries
2.2.5
|
Go to the documentation of this file.
24 #ifndef LELY_IO2_CO_TIMER_HPP_
25 #define LELY_IO2_CO_TIMER_HPP_
43 auto overrun = wait->r.result;
71 virtual void operator()(
int overrun, ::std::error_code ec) noexcept = 0;
77 #endif // !LELY_IO2_CO_TIMER_HPP_
const struct ev_exec_vtbl *const ev_exec_t
An abstract task executor.
virtual void operator()(int overrun, ::std::error_code ec) noexcept=0
The coroutine to be executed once the wait operation completes (or is canceled).
A wait operation suitable for use with an I/O timer.
CoTimerWait() noexcept
Constructs a wait operation.
An abstract task executor. This class is a wrapper around #ev_exec_t*.
The parent class for function objects used as stackless coroutines.
A wait operation, suitable for use with an I/O timer, with a stackless coroutine as the completion ta...
#define IO_TIMER_WAIT_INIT(exec, func)
The static initializer for io_timer_wait.
struct ev_task task
The task (to be) submitted upon completion (or cancellation) of the wait operation.
struct io_timer_wait * io_timer_wait_from_task(struct ev_task *task)
Obtains a pointer to an I/O timer wait operation from a pointer to its completion task.
CoTimerWait(ev_exec_t *exec) noexcept
Constructs a wait operation.
::std::error_code make_error_code(SdoErrc e) noexcept
Creates an error code corresponding to an SDO abort code.
ev::Executor get_executor() const noexcept
Returns the executor to which the completion task is (to be) submitted.
ev_exec_t * exec
A pointer to the executor to which the task is (to be) submitted.