OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::AsioTimerSafe Class Reference

#include <asiotimersafe.hpp>

Collaboration diagram for openvpn::AsioTimerSafe:
[legend]

Classes

struct  Epoch
 

Public Types

typedef std::unique_ptr< AsioTimerSafeUPtr
 

Public Member Functions

 AsioTimerSafe (openvpn_io::io_context &io_context)
 
std::size_t expires_at (const Time &t)
 
std::size_t expires_after (const Time::Duration &d)
 
std::size_t cancel ()
 
template<typename F >
void async_wait (F &&func)
 

Private Types

typedef std::size_t epoch_t
 

Private Member Functions

epoch_t epoch () const
 
void inc_epoch ()
 

Private Attributes

AsioTimer timer_
 
Epoch::Ptr epoch_
 

Detailed Description

Definition at line 22 of file asiotimersafe.hpp.

Member Typedef Documentation

◆ epoch_t

typedef std::size_t openvpn::AsioTimerSafe::epoch_t
private

Definition at line 60 of file asiotimersafe.hpp.

◆ UPtr

typedef std::unique_ptr<AsioTimerSafe> openvpn::AsioTimerSafe::UPtr

Definition at line 25 of file asiotimersafe.hpp.

Constructor & Destructor Documentation

◆ AsioTimerSafe()

openvpn::AsioTimerSafe::AsioTimerSafe ( openvpn_io::io_context &  io_context)
inline

Definition at line 27 of file asiotimersafe.hpp.

Member Function Documentation

◆ async_wait()

template<typename F >
void openvpn::AsioTimerSafe::async_wait ( F &&  func)
inline

Definition at line 52 of file asiotimersafe.hpp.

Here is the caller graph for this function:

◆ cancel()

std::size_t openvpn::AsioTimerSafe::cancel ( )
inline

Definition at line 45 of file asiotimersafe.hpp.

Here is the caller graph for this function:

◆ epoch()

epoch_t openvpn::AsioTimerSafe::epoch ( ) const
inlineprivate

Definition at line 68 of file asiotimersafe.hpp.

Here is the caller graph for this function:

◆ expires_after()

std::size_t openvpn::AsioTimerSafe::expires_after ( const Time::Duration &  d)
inline

Definition at line 39 of file asiotimersafe.hpp.

Here is the caller graph for this function:

◆ expires_at()

std::size_t openvpn::AsioTimerSafe::expires_at ( const Time t)
inline

Definition at line 33 of file asiotimersafe.hpp.

Here is the caller graph for this function:

◆ inc_epoch()

void openvpn::AsioTimerSafe::inc_epoch ( )
inlineprivate

Definition at line 73 of file asiotimersafe.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ epoch_

Epoch::Ptr openvpn::AsioTimerSafe::epoch_
private

Definition at line 79 of file asiotimersafe.hpp.

◆ timer_

AsioTimer openvpn::AsioTimerSafe::timer_
private

Definition at line 78 of file asiotimersafe.hpp.


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