1 #ifndef _MADARA_THREADS_WORKER_THREAD_INL_ 2 #define _MADARA_THREADS_WORKER_THREAD_INL_ 17 ACE_Time_Value & current, ACE_Time_Value & frequency,
18 ACE_Time_Value & next_epoch,
19 bool & one_shot,
bool & blaster)
25 "WorkerThread(%s)::svc:" \
26 " thread repeating at %f hz\n",
name_.c_str (),
hertz_);
29 frequency.set (1.0 /
hertz_);
30 next_epoch = current + frequency;
37 "WorkerThread(%s)::svc:" \
38 " thread blasting at infinite hz\n",
name_.c_str ());
46 "WorkerThread(%s)::svc:" \
47 " thread running once\n",
name_.c_str ());
51 #endif // _MADARA_THREADS_WORKER_THREAD_H_
double hertz_
hertz rate for worker thread executions
MADARA_Export utility::Refcounter< logger::Logger > global_logger
void change_frequency(double hertz, ACE_Time_Value ¤t, ACE_Time_Value &frequency, ACE_Time_Value &next_epoch, bool &one_shot, bool &blaster)
Changes the frequency given a hertz rate.
#define madara_logger_ptr_log(logger, level,...)
Fast version of the madara::logger::log method for Logger pointers.
std::string name_
the name of the contained thread