Public Member Functions | List of all members
Celartem::Thread Class Referenceabstract

#include <cel_thread.h>

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 ( )
inlinevirtual

The destructor blocks until the thread ends.

Member Function Documentation

virtual void Celartem::Thread::join ( )
inlinevirtual

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 ( )
inlinevirtual

This method is to start a new thread.


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

Cuminas DjVu SDK 3.0.33103
This document is made with doxygen 1.8.5 at Sun Dec 15 2013 19:38:06.
Cuminas Logo