client-cpp  0.10.0
kaa::KaaTimer< Signature, Function > Class Template Reference

#include <KaaTimer.hpp>

+ Collaboration diagram for kaa::KaaTimer< Signature, Function >:

Public Member Functions

 KaaTimer (const std::string &timerName)
 

Public Attributes

bool isThreadRun_
 
bool isTimerRun_
 
std::thread timerThread_
 
std::condition_variable condition_
 
std::mutex timerGuard_
 
std::chrono::time_point
< TimerClock > 
endTS_
 
Function callback_
 

Detailed Description

template<class Signature, class Function = std::function<Signature>>
class kaa::KaaTimer< Signature, Function >

Definition at line 33 of file KaaTimer.hpp.

Constructor & Destructor Documentation

template<class Signature, class Function = std::function<Signature>>
kaa::KaaTimer< Signature, Function >::KaaTimer ( const std::string &  timerName)
inline

Definition at line 36 of file KaaTimer.hpp.

Member Data Documentation

template<class Signature, class Function = std::function<Signature>>
Function kaa::KaaTimer< Signature, Function >::callback_

Definition at line 128 of file KaaTimer.hpp.

template<class Signature, class Function = std::function<Signature>>
std::condition_variable kaa::KaaTimer< Signature, Function >::condition_

Definition at line 122 of file KaaTimer.hpp.

template<class Signature, class Function = std::function<Signature>>
std::chrono::time_point<TimerClock> kaa::KaaTimer< Signature, Function >::endTS_

Definition at line 126 of file KaaTimer.hpp.

template<class Signature, class Function = std::function<Signature>>
bool kaa::KaaTimer< Signature, Function >::isThreadRun_

Definition at line 38 of file KaaTimer.hpp.

template<class Signature, class Function = std::function<Signature>>
bool kaa::KaaTimer< Signature, Function >::isTimerRun_

Definition at line 119 of file KaaTimer.hpp.

template<class Signature, class Function = std::function<Signature>>
std::mutex kaa::KaaTimer< Signature, Function >::timerGuard_

Definition at line 124 of file KaaTimer.hpp.

template<class Signature, class Function = std::function<Signature>>
std::thread kaa::KaaTimer< Signature, Function >::timerThread_

Definition at line 121 of file KaaTimer.hpp.


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