#include <thread.h>
Inheritance diagram for cThread:

Public Member Functions | |
| cThread () | |
| Constructor. | |
| cThread (const pthread_t &thread, bool main_thread, tTheadState state) | |
| Fully qualified constructor. | |
| virtual | ~cThread () |
| Destructor. | |
| virtual bool | Start () |
| Starts a thread. | |
| virtual bool | Wait (void *&rv) |
| wait for termination | |
| bool | IsRunning () |
| return if the thread is running | |
| bool | IsMain () |
| return if it is the main thread | |
Static Public Member Functions | |
| static cThread * | GetThread () |
| Get a thread. | |
Protected Member Functions | |
| virtual void * | Run ()=0 |
| abstract run method to be implemented by childs | |
| virtual void | Exit (void *rv) |
| terminate the thread | |
Static Protected Member Functions | |
| static void * | Thread (void *param) |
| opens a thread | |
Protected Attributes | |
| pthread_t | m_thread |
| thread structure | |
| bool | m_main |
| true => main thread | |
| tTheadState | m_state |
| state of the thread | |
|
|
terminate the thread
|
|
|
Get a thread.
|
|
|
Starts a thread.
|
|
|
opens a thread
|
|
|
wait for termination
|
1.4.4