Zero  0.1.0
Public Member Functions | Private Attributes | List of all members
ticker_thread_t Class Reference
Inheritance diagram for ticker_thread_t:
thread_wrapper_t

Public Member Functions

 ticker_thread_t (bool msec=false, bool print_tput=false)
 
void shutdown ()
 
void run ()
 
- Public Member Functions inherited from thread_wrapper_t
 thread_wrapper_t ()
 
virtual ~thread_wrapper_t ()
 
virtual void before_run ()
 
virtual void after_run ()
 
void spawn ()
 
void fork ()
 
void join ()
 

Private Attributes

int interval_usec
 
bool msec
 
bool print_tput
 
std::atomic< bool > stop
 
std::array< sm_stats_t, 2 > stats
 
bool even_round
 

Constructor & Destructor Documentation

§ ticker_thread_t()

ticker_thread_t::ticker_thread_t ( bool  msec = false,
bool  print_tput = false 
)
inline

Member Function Documentation

§ run()

void ticker_thread_t::run ( )
inlinevirtual

Implements thread_wrapper_t.

§ shutdown()

void ticker_thread_t::shutdown ( )
inline

Member Data Documentation

§ even_round

bool ticker_thread_t::even_round
private

§ interval_usec

int ticker_thread_t::interval_usec
private

§ msec

bool ticker_thread_t::msec
private

§ print_tput

bool ticker_thread_t::print_tput
private

§ stats

std::array<sm_stats_t, 2> ticker_thread_t::stats
private

§ stop

std::atomic<bool> ticker_thread_t::stop
private

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