25 #ifndef __Thread_h_incl__ 26 #define __Thread_h_incl__ 31 #ifdef __GNUC__ // MinGW misses these declarations 32 typedef DWORD (WINAPI *PTHREAD_START_ROUTINE)(
33 LPVOID lpThreadParameter
35 #ifndef ERROR_DBG_RIPEXCEPTION 36 #define ERROR_DBG_RIPEXCEPTION 695L 100 bool Start( PTHREAD_START_ROUTINE ThrFunc,
DWORD msYield = 100 );
106 bool Stop(
DWORD msWait = 3000 );
113 #ifndef HAVE_STRUCTURED_EH 151 PTHREAD_START_ROUTINE pFunc,
152 SIZE_T StackSize = 0,
154 PSECURITY_ATTRIBUTES pSec = NULL
161 bool SetThreadProc( PTHREAD_START_ROUTINE pFunc );
173 bool Stop(
DWORD msWait,
bool mayNuke =
false );
177 bool Pause(
bool pause );
187 void DelayDeath(
bool enable );
209 volatile DWORD _DelayCount;
211 #ifdef INCL_THREAD_W95_SUPPORT 214 static DWORD _TLSIndex;
217 void _Cleanup(
bool closeThr =
false );
218 static void _ForceDeath(
void );
223 #endif//def HAVE_STRUCTURED_EH 226 #endif//ndef __Thread_h_incl__ 227 #endif//def __cplusplus
#define END_NAMESPACE(name)
PTHREAD_START_ROUTINE _ThreadFunc
class SimpleThread * PSimpleThread
#define BEGIN_NAMESPACE(name)
Common include; Added types, small "ubiquitous" utilities, et c.
PSECURITY_ATTRIBUTES _SecAttr