unsigned long __stdcall threadFunc(void * arg) { Thread::Private * thread = (Thread::Private *)arg; thread->func(thread->arg); return 0; }
extern "C" void * threadFunc(void * arg) { Thread::Private * thread = (Thread::Private *)arg; thread->func(thread->arg); pthread_exit(0); }