23 #ifndef _PLUGINS_EXAMPLE_THREAD_H_
24 #define _PLUGINS_EXAMPLE_THREAD_H_
26 #include <aspect/blocked_timing.h>
27 #include <aspect/logging.h>
28 #include <core/threading/thread.h>
Thread of example plugin.
virtual void init()
Initialize the thread.
virtual void loop()
Thread loop.
virtual void run()
Stub to see name in backtrace for easier debugging.
ExampleThread(fawkes::BlockedTimingAspect::WakeupHook hook, const char *name, unsigned int modc)
Constructor.
virtual void finalize()
Finalize the thread.
virtual ~ExampleThread()
Destructor.
Thread aspect to use blocked timing.
WakeupHook
Type to define at which hook the thread is woken up.
Thread aspect to log output.
Thread class encapsulation of pthreads.
const char * name() const
Get name of thread.