MITHREAD::WORKER_DETACHED Class Reference

Thread class that MUST be allocated via 'new' and runs detached from the thread that created it. More...

#include <mi32/mithread.h>

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

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]

Member Function Documentation

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.

Parameters:
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.


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

Generated on Sun Oct 7 21:36:39 2012 for TNTsdk 2012 by  doxygen 1.6.1