sigx::threadable Class Reference
[Threading]

Derived classes denote that they are a thread wrapper. More...

#include <threadable.h>

Inheritance diagram for sigx::threadable:

sigx::manual_dispatchable sigx::dispatchable sigx::noncopyable sigx::glib_threadable

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.

Detailed Description

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.


Member Function Documentation

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.

Note:
The sigx::dispatchable baseclass still has a valid dispatcher reference and the thread's maincontext and mainloop are still valid, too.

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.

Note:
The sigx::dispatchable baseclass already has a valid dispatcher and the thread's maincontext and mainloop are already valid, too.


The documentation for this class was generated from the following file:

Generated on Mon Aug 3 17:35:09 2009 for sigx++ by  doxygen 1.5.9