24 void winStart(
int priority, DWORD * outThreadID);
30 virtual void threadProc() {PFC_ASSERT(!
"Stub thread entry - should not get here");}
34 static unsigned CALLBACK
g_entry(
void* p_instance);
36 static void *
g_entry(
void * arg );
50 PFC_CLASS_NOT_COPYABLE_EX(
thread)
t_size getOptimalWorkerThreadCountEx(t_size taskCountLimit)
void startWithPriority(int priority)
t_size getOptimalWorkerThreadCount()
typedef HANDLE(WINAPI *pPowerCreateRequest_t)(__in void *Context)
IMPORTANT: all classes derived from thread must call waitTillDone() in their destructor, to avoid object destruction during a virtual function call!
PFC_DECLARE_EXCEPTION(exception_creation, exception,"Could not create thread")
void setPriority(int priority)
virtual void threadProc()
pthread_t posixThreadHandle()
static unsigned CALLBACK g_entry(void *p_instance)
static int currentPriority()
static void appleStartThreadPrologue()
void winStart(int priority, DWORD *outThreadID)