5#if !defined(AFX_CUSTOMTHREAD_H__717C0FE3_DFA5_4C22_A6FE_56A15B3434C8__INCLUDED_)
6#define AFX_CUSTOMTHREAD_H__717C0FE3_DFA5_4C22_A6FE_56A15B3434C8__INCLUDED_
14BEGIN_MOOTOOLS_NAMESPACE
16typedef enum _THREAD_STATE_INFO
19 THREAD_RUN_STATE_FLAGS = 0x0F,
23 THREAD_ASK_FOR_CANCEL = 0x100,
26#define THREAD_INIT_STATE(a) (a)
27#define GET_THREAD_RUN_STATE(a) (a & THREAD_RUN_STATE_FLAGS)
28#define SET_THREAD_RUN_STATE(a, b) ((a & ~THREAD_RUN_STATE_FLAGS) | b)
29#define SET_CANCEL_THREAD_FLAG(a) (a | THREAD_ASK_FOR_CANCEL)
30#define CLEAR_CANCEL_THREAD_FLAG(a) (a & ~THREAD_ASK_FOR_CANCEL)
31#define GET_CANCEL_THREAD_FLAG(a) (a & THREAD_ASK_FOR_CANCEL)
39 static bool stopThreads;
46 void SetThreadName(
const char *name);
48 static void SetCurrentThreadName(
const char *name);
50 static unsigned int GetRunningThreadCount();
54 static bool ThreadsMustTerminate();
The class defines an x, y, z 3D point which can use int, float or double.
Definition 3DPoint.h:27
Definition CustomThread.h:34