#include <CATThread.h>
CATThread is your basic thread class. You can derive classes from it or use as-is with a user-defined CATTHREADPROC
Definition at line 25 of file CATThread.h.
Public Types | |
typedef void(* | CATTHREADPROC )(void *param, CATThread *theThread) |
Public Member Functions | |
CATThread () | |
Thread construction. | |
virtual | ~CATThread () |
Thread destruction. | |
virtual bool | Start (void *param) |
virtual bool | StartProc (CATTHREADPROC proc, void *param) |
virtual bool | WaitStop (CATUInt32 timeout=(CATUInt32)-1, CATUInt32 *exitCode=0) |
virtual void | ForceStop () |
virtual bool | Pause () |
Pause the thread. Thread must have been started before use. | |
virtual bool | Resume () |
Resume the thread. Thread must have been started before use. | |
Protected Member Functions | |
virtual void | ThreadFunction () |
Static Protected Member Functions | |
static unsigned int _stdcall | W32ThreadProc (void *param) |
Protected Attributes | |
CATUInt32 | fThreadId |
thread id | |
HANDLE | fThreadHandle |
Thread handle. | |
CATTHREADPROC | fCallback |
Callback. | |
void * | fUserParam |
User parameter for thread. |