3 #ifndef _MADARA_THREADS_THREADER_INL_
4 #define _MADARA_THREADS_THREADER_INL_
23 control_.set(name +
".debug",
true);
28 control_.set(name +
".debug",
false);
34 control_.set(
".debug_to_kb", prefix);
This class provides a distributed knowledge base to users.
int set(const VariableReference &variable, const std::string &value, const EvalSettings &settings=EvalSettings(true, false, true, false, false))
Atomically sets the value of a variable to a string.
void disable_debug(void)
Requests that all new threads disable debug mode.
knowledge::KnowledgeBase get_data_plane(void)
Gets the data plane used by threads.
knowledge::KnowledgeBase control_
The control plane used by threads for termination and pause information.
void enable_debug(void)
Requests that all new threads to enter debug mode.
void change_hertz(const std::string &name, double hertz)
Modify hertz rate of a thread.
void debug_to_kb(const std::string &prefix=".threader")
Requests all debugging for threads go into the data plane KB instead of the control plane.
knowledge::KnowledgeBase get_control_plane(void)
Gets the control plane used by threads.