OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TimerImpl Class Reference

#include <timer_impl.h>

Public Types

typedef boost::asio::steady_timer TimerType
 

Public Member Functions

 TimerImpl (boost::asio::io_context &io_service)
 
void expires_from_now (uint64_t ms, boost::system::error_code &ec)
 
TimerType::duration expires_from_now ()
 
template<typename WaitHandler >
void async_wait (WaitHandler handler)
 
void cancel (boost::system::error_code &ec)
 

Private Attributes

TimerType timer_
 

Detailed Description

Definition at line 11 of file timer_impl.h.

Member Typedef Documentation

typedef boost::asio::steady_timer TimerImpl::TimerType

Definition at line 13 of file timer_impl.h.

Constructor & Destructor Documentation

TimerImpl::TimerImpl ( boost::asio::io_context &  io_service)
inline

Definition at line 15 of file timer_impl.h.

Member Function Documentation

template<typename WaitHandler >
void TimerImpl::async_wait ( WaitHandler  handler)
inline

Definition at line 32 of file timer_impl.h.

void TimerImpl::cancel ( boost::system::error_code &  ec)
inline

Definition at line 33 of file timer_impl.h.

void TimerImpl::expires_from_now ( uint64_t  ms,
boost::system::error_code &  ec 
)
inline

Definition at line 19 of file timer_impl.h.

TimerType::duration TimerImpl::expires_from_now ( )
inline

Definition at line 27 of file timer_impl.h.

Member Data Documentation

TimerType TimerImpl::timer_
private

Definition at line 36 of file timer_impl.h.


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