Public Member Functions

Celartem::Thread Class Reference

#include <cel_thread.h>

List of all members.

Public Member Functions

 Thread ()
virtual ~Thread ()
virtual void main ()=0
virtual void run ()
virtual void join ()

Detailed Description

This class provides the thread function. If you want to create threads to do something, you should derive the class from this class.


Constructor & Destructor Documentation

Celartem::Thread::Thread (  )  [inline]

The constructor only initializes the thread handle to NULL.

virtual Celartem::Thread::~Thread (  )  [inline, virtual]

The destructor blocks until the thread ends.


Member Function Documentation

virtual void Celartem::Thread::join (  )  [inline, virtual]

This method is to wait for the thread to finish running.

Referenced by ~Thread().

virtual void Celartem::Thread::main (  )  [pure virtual]

This is the thread routine; Overwrite this function to do threading work

virtual void Celartem::Thread::run (  )  [inline, virtual]

This method is to start a new thread.


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

This document is made with doxygen 1.7.1 at Sat Mar 31 2012 04:35:57.
Caminova Logo