Thread class that MUST be allocated via 'new' and runs detached from the thread that created it. More...
#include <mi32/mithread.h>
Protected Member Functions | |
| WORKER_DETACHED () | |
| virtual | ~WORKER_DETACHED ()=0 |
| void | ExecuteThread (MISTATUSMANAGER *manager=0, const char *DebugName=0) |
Private Member Functions | |
| virtual void | v_ExecuteThread ()=0 |
Thread class that MUST be allocated via 'new' and runs detached from the thread that created it.
'Detached' means that the thread cannot be wait'ed upon for completion, or controlled by other threads. This thread will 'delete' itself when the v_ExecuteThread() returns.
| MITHREAD::WORKER_DETACHED::WORKER_DETACHED | ( | ) | [protected] |
Default ctor.
This cannot start the thread because the derived class ctor has not been called yet. The derived class MUST call 'ExecuteThread()'!
| virtual MITHREAD::WORKER_DETACHED::~WORKER_DETACHED | ( | ) | [protected, pure virtual] |
| void MITHREAD::WORKER_DETACHED::ExecuteThread | ( | MISTATUSMANAGER * | manager = 0, |
|
| const char * | DebugName = 0 | |||
| ) | [protected] |
This method starts the detached thread.
This MUST be called by the derived class AFTER all initialization is done in the derived class ctor.
| manager | Set to provide status data or a method to cancel the detached thread's job | |
| DebugName | Name to assign to the thread, only applicable to Windows debugging under Visual Studio. |
| virtual void MITHREAD::WORKER_DETACHED::v_ExecuteThread | ( | ) | [private, pure virtual] |
Override this method to run the code in the other thread.
1.6.1