]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/windows/thread.cpp
Use nullptr instead of 0 for pointers
[libs/core.git] / source / core / windows / thread.cpp
index 410141cfb9e82626f957e6aecf6ee2fbbfc936ad..8890a70fb1cbd0eaff8cf32cdea008950c92e43b 100644 (file)
@@ -2,24 +2,27 @@
 #include "thread.h"
 #include "thread_private.h"
 
-using namespace std;
-
 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()
+{
+       // TODO: https://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx
 }
 
 } // namespace Msp