X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fwindows%2Fthread.cpp;h=24830943e6f096c7985171a1b26eeb4077c1f3a5;hb=5763dd6e8089c97699cbcbd221afb7fe1841bcdd;hp=7c436183d4f279cdc2a034053041fb5c5b96ad1d;hpb=b537410dcd5b7e661625b51ee72b15e40045fd18;p=libs%2Fcore.git diff --git a/source/core/windows/thread.cpp b/source/core/windows/thread.cpp index 7c43618..2483094 100644 --- a/source/core/windows/thread.cpp +++ b/source/core/windows/thread.cpp @@ -6,18 +6,23 @@ namespace Msp { 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(0, 0, &Private::main_wrapper, this, 0, &dummy); +} + +void Thread::platform_setname() +{ + // TODO: https://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx } } // namespace Msp