23 #ifndef __PLUGINS_OPENPRS_EXAMPLE_OPENPRS_EXAMPLE_THREAD_H_ 24 #define __PLUGINS_OPENPRS_EXAMPLE_OPENPRS_EXAMPLE_THREAD_H_ 26 #include <core/threading/thread.h> 27 #include <aspect/logging.h> 28 #include <aspect/blocked_timing.h> 29 #include <plugins/openprs/aspect/openprs.h> 48 protected:
virtual void run() { Thread::run(); }
Thread class encapsulation of pthreads.
virtual void finalize()
Finalize the thread.
OpenPRS kernel creation and communication aspect.
OpenPRSExampleThread()
Constructor.
Thread aspect to use blocked timing.
virtual ~OpenPRSExampleThread()
Destructor.
Thread aspect to log output.
virtual void run()
Stub to see name in backtrace for easier debugging.
virtual void loop()
Code to execute in the thread.
virtual void init()
Initialize the thread.