#include <cel_thread.h>
Public Member Functions | |
| Thread () | |
| virtual | ~Thread () |
| virtual void | main ()=0 |
| virtual void | run () |
| virtual void | join () |
This class provides the thread function. If you want to create threads to do something, you should derive the class from this class.
| 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.
| 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.