Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

mpcl::system::IThread Class Reference

#include <thread.hh>

Inheritance diagram for mpcl::system::IThread:

mpcl::system::TThread mpcl::event::TThreadedEventHandler< TEvent > List of all members.

Public Methods

virtual ~IThread (void)
 Destroys the instance.

virtual void start (void)=0
 Starts the thread.

virtual void join (void)=0
 From other thread, waits til this thread has finished.


Protected Methods

virtual void exit (void)=0
virtual void body (void)=0
 Main body of the thread.


Detailed Description

Thread base class.
See also:
TBaseOperatingSystem.
Warning:
All methods must be private or protected to forbids other than current thread to call own methods. Doing so, it avoids that the state of the thread could be modified by another external thread at the same time (race conditions). The exception for this rule is for communication methods, using for that, mutexes or so.

Definition at line 50 of file thread.hh.


Member Function Documentation

virtual void mpcl::system::IThread::exit void    [protected, pure virtual]
 

Stops the thread. This member function musts be called only by the current thread.

Implemented in mpcl::system::TThread.


The documentation for this class was generated from the following file:
Generated on Mon Oct 13 02:35:25 2003 for MPCL by doxygen1.2.18