X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fwindows%2Fthread.cpp;h=8890a70fb1cbd0eaff8cf32cdea008950c92e43b;hb=HEAD;hp=ab02c4d04094394e384b91defd717b70ac5918df;hpb=a4596d1c2f627e4568eb6c01d81b6e45f488715a;p=libs%2Fcore.git diff --git a/source/core/windows/thread.cpp b/source/core/windows/thread.cpp index ab02c4d..3231896 100644 --- a/source/core/windows/thread.cpp +++ b/source/core/windows/thread.cpp @@ -1,4 +1,4 @@ -#include +#include "winapi.h" #include "thread.h" #include "thread_private.h" @@ -6,18 +6,18 @@ 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(nullptr, 0, &Private::main_wrapper, this, 0, &dummy); } void Thread::platform_setname()