Fawkes API
Fawkes Development Version
|
22 #include "openprs_example_thread.h"
24 #include <logging/logger.h>
25 #include <plugins/openprs/utils/openprs_comm.h>
38 :
Thread(
"OpenPRSExampleThread",
Thread::OPMODE_WAITFORWAKEUP),
66 static int modcount = 0;
67 if (++modcount % 50 == 0) {
virtual void init()
Initialize the thread.
OpenPRS kernel creation and communication aspect.
virtual ~OpenPRSExampleThread()
Destructor.
Thread aspect to use blocked timing.
virtual void loop()
Code to execute in the thread.
LockPtr< OpenPRSComm > openprs
OpenPRS kernel communication wrapper.
const std::string openprs_kernel_name
The name of the kernel created for this thread.
OpenPRSExampleThread()
Constructor.
Fawkes library namespace.
virtual void finalize()
Finalize the thread.
Thread class encapsulation of pthreads.