summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorreduz <reduzio@gmail.com>2014-04-05 09:40:45 -0300
committerreduz <reduzio@gmail.com>2014-04-05 09:40:45 -0300
commitee768378268c66fc64140f7016f6ce55e04aa204 (patch)
tree65b00748df48fad78a2eba800546697aaa290df9
parentc1f4d1c95e545ea42d1ff5d9fc226f041e034546 (diff)
parenta9d4051ddfeaeb1bc3b95e5f8721cbe7bcce9610 (diff)
Merge pull request #223 from sanikoyes/hotfix-imp-thread-id-in-windows
Implement thread id in windows platform
-rw-r--r--drivers/windows/thread_windows.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/windows/thread_windows.cpp b/drivers/windows/thread_windows.cpp
index a48ec74d09..748e9661fa 100644
--- a/drivers/windows/thread_windows.cpp
+++ b/drivers/windows/thread_windows.cpp
@@ -46,7 +46,7 @@ DWORD ThreadWindows::thread_callback( LPVOID userdata ) {
ThreadWindows *t=reinterpret_cast<ThreadWindows*>(userdata);
t->callback(t->user);
- t->id=(ID)0; // must implement
+ t->id=(ID)GetCurrentThreadId(); // must implement
return 0;
}
@@ -67,7 +67,7 @@ Thread* ThreadWindows::create_func_windows(ThreadCreateCallback p_callback,void
}
Thread::ID ThreadWindows::get_thread_ID_func_windows() {
- return (ID)0; //must implement
+ return (ID)GetCurrentThreadId(); //must implement
}
void ThreadWindows::wait_to_finish_func_windows(Thread* p_thread) {