1 #ifndef _MADARA_THREADS_WORKER_THREAD_INL_
2 #define _MADARA_THREADS_WORKER_THREAD_INL_
23 madara::logger::Logger::set_thread_hertz(hertz);
28 "WorkerThread(%s)::svc:"
29 " thread repeating at %f hz\n",
37 next_epoch += frequency;
44 "WorkerThread(%s)::svc:"
45 " thread blasting at infinite hz\n",
54 "WorkerThread(%s)::svc:"
55 " thread running once\n",
#define madara_logger_ptr_log(loggering, level,...)
Fast version of the madara::logger::log method for Logger pointers.
double hertz_
hertz rate for worker thread executions
std::string name_
the name of the contained thread
void change_frequency(double hertz, utility::TimeValue ¤t, utility::Duration &frequency, utility::TimeValue &next_epoch, bool &one_shot, bool &blaster)
Changes the frequency given a hertz rate.
T get(const KnowledgeRecord &kr)
Get the value of a KnowlegeRecord.
MADARA_EXPORT utility::Refcounter< logger::Logger > global_logger
Provides a quality-of-service-enabled threading library.
std::chrono::time_point< Clock > TimeValue
time point
std::chrono::nanoseconds Duration
default clock duration
Duration seconds_to_duration(double seconds)
Returns seconds in double format as nanosecond duration.
Copyright(c) 2020 Galois.