11 struct Thread::Private
19 Private(): handle(0) { }
22 static DWORD WINAPI main_wrapper(void *t)
23 { reinterpret_cast<Thread *>(t)->main(); return 0; }
25 static void *main_wrapper(void *t)
26 { reinterpret_cast<Thread *>(t)->main(); return 0; }
52 WaitForSingleObject(priv_->handle, INFINITE);
54 pthread_join(priv_->handle, 0);
62 TerminateThread(priv_->handle, 0);
64 pthread_kill(priv_->handle, SIGKILL);
74 DWORD dummy; // Win9x needs the lpTthreadId parameter
75 priv_->handle = CreateThread(0, 0, &Private::main_wrapper, this, 0, &dummy);
77 pthread_create(&priv_->handle, 0, &Private::main_wrapper, this);