22 #ifndef __PLUGINS_OPENPRS_AGENT_OPENPRS_AGENT_THREAD_H_ 23 #define __PLUGINS_OPENPRS_AGENT_OPENPRS_AGENT_THREAD_H_ 25 #include <core/threading/thread.h> 26 #include <aspect/logging.h> 27 #include <aspect/clock.h> 28 #include <aspect/blocked_timing.h> 29 #include <aspect/configurable.h> 30 #include <plugins/openprs/aspect/openprs.h> 51 protected:
virtual void run() { Thread::run(); }
54 void handle_message(std::string sender, std::string message);
57 std::string cfg_agent_;
virtual ~OpenPRSAgentThread()
Destructor.
Thread aspect that allows to obtain the current time from the clock.
Thread class encapsulation of pthreads.
OpenPRS kernel creation and communication aspect.
Thread aspect to use blocked timing.
virtual void finalize()
Finalize the thread.
virtual void loop()
Code to execute in the thread.
virtual void run()
Stub to see name in backtrace for easier debugging.
Thread aspect to log output.
OpenPRSAgentThread(OpenPRSAspect::Mode oprs_mode, bool gdb_delay)
Constructor.
Thread aspect to access configuration data.
virtual void init()
Initialize the thread.