sigx++ 2.0.1
|
Derived classes denote that they are a thread wrapper. More...
#include <threadable.h>
Protected Member Functions | |
virtual void | on_startup () |
Initialize thread specific stuff just before entering the thread's mainloop. | |
virtual void | on_cleanup () |
cleanup other stuff just after quitting the mainloop. |
Derived classes denote that they are a thread wrapper.
Additionally, since a threadable is a dispatchable, derived classes denote their ability to participate automatically in threadsafe messaging.
virtual void sigx::threadable::on_cleanup | ( | ) | [inline, protected, virtual] |
cleanup other stuff just after quitting the mainloop.
This method gives derived classes the possibility to clean up their things like thread private data right after quitting the mainloop.
virtual void sigx::threadable::on_startup | ( | ) | [inline, protected, virtual] |
Initialize thread specific stuff just before entering the thread's mainloop.
This method gives derived classes the possibility to initialize their things like thread private data or connecting to the idle signal (via mainloop()->signal_idle() in case of a glib_threadable) just before entering the mainloop.