CWorkerThread
Up

Purpose:
Base class for the GameManager and CommManager used for handling the worker thread starting and terminating procedures.
Methods:
BOOL SetPriority (int prio) - Sets the priority level of the invoked thread.
void StartWorkerThread (LPVOID pvParam = 0) - Starts the worker thread.
void EndWorkerThread (BOOL bWaitForTermination) - Ends the worker thread. Setting the bWaitForTermination to TRUE blocks until thread exits.
UINT InvokeThreadEntry (LPVOID pParam) - Used as shell only, to invoke the thread.
virtual UINT ThreadEntry (LPVOID pParam = 0) - Pure virtual function  - here goes the thread's main loop.
 

Back Home Up