3 #include "thread_private.h"
7 void Thread::platform_join()
9 WaitForSingleObject(_priv->handle, INFINITE);
12 void Thread::platform_kill()
14 TerminateThread(_priv->handle, 0);
17 void Thread::platform_launch()
19 DWORD dummy; // Win9x needs the lpTthreadId parameter
20 _priv->handle = CreateThread(nullptr, 0, &Private::main_wrapper, this, 0, &dummy);
23 void Thread::platform_setname()
25 // TODO: https://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx