#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.
|
inline |
The constructor only initializes the thread handle to NULL.
|
inlinevirtual |
The destructor blocks until the thread ends.
|
inlinevirtual |
This method is to wait for the thread to finish running.
Referenced by ~Thread().
|
pure virtual |
This is the thread routine; Overwrite this function to do threading work
|
inlinevirtual |
This method is to start a new thread.