diff options
author | sanikoyes <sanikoyes@163.com> | 2014-03-24 16:06:10 +0800 |
---|---|---|
committer | sanikoyes <sanikoyes@163.com> | 2014-03-24 16:06:10 +0800 |
commit | a9d4051ddfeaeb1bc3b95e5f8721cbe7bcce9610 (patch) | |
tree | 442c2441d43242127b6153eda7d249d3d186973c /drivers/windows | |
parent | e20e3c9525c2f0d5bb95e85138a8d88a0088d439 (diff) |
Implement thread id in windows platform
Diffstat (limited to 'drivers/windows')
-rw-r--r-- | drivers/windows/thread_windows.cpp | 4 |
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) { |