13class DLL_TOOLSFUNCTION
CXThread :
public CXObject
22 static void SleepCurrentThread(
unsigned int milliSeconds);
32 bool IsValidThread()
const;
33 bool IsSuspended()
const;
34 bool IsTerminated()
const;
38 xThreadPriority GetThreadPriority()
const;
39 bool SetThreadPriority(xThreadPriority priority);
41 bool ShouldCancel()
const;
43 bool Lock(
bool lock)
const;
46 void *GetUserThreadData();
49 typedef enum ThreadFlags
51 XTHREAD_FLAGS_NONE = 0x00,
52 XTHREAD_FLAGS_AUTODELETE = 0x01,
53 XTHREAD_FLAGS_SET_CANCEL = 0x02,
54 XTHREAD_FLAGS_IS_CALLBACK = 0x04,
55 XTHREAD_FLAGS_IS_TERMINATED = 0x08,
56 XTHREAD_IS_NOT_CRITICAL = 0x10,
60 void SetFlag(ThreadFlags
flag,
bool set);
61 bool IsFlagSet(ThreadFlags
flag)
const;
64 virtual void Finish();
68 XTHREADPROC userThreadCallback;
71 xThreadContext threadContext;
73 mutable unsigned int flags;
75 static bool StaticThreadCallback(
void *data);