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