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

thread Class Reference

A thread of control. More...

List of all members.

Public Methods

 thread ()
 Constructor (does not launch the thread; for that use start()). More...

virtual ~thread ()
 Destructor. More...

void start ()
 Starts the thread by invoking run() in the new thread. More...

void join ()
 Blocks until the thread is finished. More...


Static Public Methods

void sleep (ntime duration)
 Sleeps for a certain duration. More...


Protected Methods

virtual void run ()=0


Detailed Description

A thread of control.


Constructor & Destructor Documentation

thread::thread  
 

Constructor (does not launch the thread; for that use start()).

virtual thread::~thread   [virtual]
 

Destructor.


Member Function Documentation

void thread::join  
 

Blocks until the thread is finished.

To be invoked only from a different thread than this one.

virtual void thread::run   [protected, pure virtual]
 

void thread::sleep ntime    duration [static]
 

Sleeps for a certain duration.

void thread::start  
 

Starts the thread by invoking run() in the new thread.


The documentation for this class was generated from the following file:
Generated on Fri Sep 20 20:07:30 2002 for NMSTL