Lely core libraries  2.2.5
lely::io::TimerQueueWait Class Reference

A wait operation suitable for use with a timerqueue. More...

#include <tqueue.hpp>

Inheritance diagram for lely::io::TimerQueueWait:
Collaboration diagram for lely::io::TimerQueueWait:

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

- Data Fields inherited from io_tqueue_wait
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.
 

Detailed Description

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.


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