MADARA  3.2.3
Threader.inl
Go to the documentation of this file.
1 
2 
3 #ifndef _MADARA_THREADS_THREADER_INL_
4 #define _MADARA_THREADS_THREADER_INL_
5 
13 #include "Threader.h"
14 
15 
16 inline void
18 {
19  control_.set (name + ".hertz", hertz);
20 }
21 
24 {
25  return data_;
26 }
27 
34 {
35  return control_;
36 }
37 
38 
39 #endif // _MADARA_THREADS_THREADER_INL_
knowledge::KnowledgeBase get_control_plane(void)
Gets the control plane used by threads.
Definition: Threader.inl:33
knowledge::KnowledgeBase control_
The control plane used by threads for termination and pause information.
Definition: Threader.h:234
knowledge::KnowledgeBase get_data_plane(void)
Gets the data plane used by threads.
Definition: Threader.inl:23
static struct madara::knowledge::tags::string_t string
knowledge::KnowledgeBase data_
The data plane used by threads.
Definition: Threader.h:227
This class provides a distributed knowledge base to users.
Definition: KnowledgeBase.h:45
int set(const VariableReference &variable, const std::string &value, const EvalSettings &settings=EvalSettings(false, false, true, false, false))
Atomically sets the value of a variable to a string.
void change_hertz(const std::string name, double hertz)
Modify hertz rate of a thread.
Definition: Threader.inl:17