Lely core libraries 2.3.4
lely::io::TimerWait Class Reference

A wait operation suitable for use with an I/O timer. More...

#include <timer.hpp>

Inheritance diagram for lely::io::TimerWait:
Collaboration diagram for lely::io::TimerWait:

Public Member Functions

template<class F >
 TimerWait (ev_exec_t *exec, F &&f)
 Constructs a wait operation with a completion task.
 
template<class F >
 TimerWait (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

- Data Fields inherited from io_timer_wait
struct ev_task task
 The task (to be) submitted upon completion (or cancellation) of the wait operation.
 
struct io_timer_wait_result r
 The result of the wait operation.
 

Detailed Description

A wait operation suitable for use with an I/O timer.

This class stores a callable object with signature void(int overrun, std::error_code ec), which is invoked upon completion (or cancellation) of the wait operation.

Definition at line 84 of file timer.hpp.


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