Thrill  0.1
Dispatcher::Timer Struct Reference

Detailed Description

struct for timer callbacks

Definition at line 762 of file dispatcher.hpp.

+ Collaboration diagram for Dispatcher::Timer:

#include <dispatcher.hpp>

Public Member Functions

 Timer (const steady_clock::time_point &_next_timeout, const milliseconds &_timeout, const TimerCallback &_cb)
 
bool operator< (const Timer &b) const
 

Public Attributes

TimerCallback cb
 callback More...
 
steady_clock::time_point next_timeout
 timepoint of next timeout More...
 
milliseconds timeout
 relative timeout for restarting More...
 

Constructor & Destructor Documentation

◆ Timer()

Timer ( const steady_clock::time_point &  _next_timeout,
const milliseconds _timeout,
const TimerCallback _cb 
)
inline

Definition at line 770 of file dispatcher.hpp.

Member Function Documentation

◆ operator<()

bool operator< ( const Timer b) const
inline

Definition at line 778 of file dispatcher.hpp.

References Dispatcher::Timer::next_timeout.

Member Data Documentation

◆ cb

callback

Definition at line 768 of file dispatcher.hpp.

Referenced by Dispatcher::Dispatch().

◆ next_timeout

steady_clock::time_point next_timeout

timepoint of next timeout

Definition at line 764 of file dispatcher.hpp.

Referenced by Dispatcher::Dispatch(), and Dispatcher::Timer::operator<().

◆ timeout

milliseconds timeout

relative timeout for restarting

Definition at line 766 of file dispatcher.hpp.

Referenced by Dispatcher::Dispatch().


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