void Thread::platform_join()
{
- WaitForSingleObject(priv_->handle, INFINITE);
+ WaitForSingleObject(_priv->handle, INFINITE);
}
void Thread::platform_kill()
{
- TerminateThread(priv_->handle, 0);
+ TerminateThread(_priv->handle, 0);
}
void Thread::platform_launch()
{
DWORD dummy; // Win9x needs the lpTthreadId parameter
- priv_->handle = CreateThread(0, 0, &Private::main_wrapper, this, 0, &dummy);
+ _priv->handle = CreateThread(nullptr, 0, &Private::main_wrapper, this, 0, &dummy);
+}
+
+void Thread::platform_setname()
+{
+ // TODO: https://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx
}
} // namespace Msp