Implement thread id in windows platform
This commit is contained in:
parent
e20e3c9525
commit
a9d4051ddf
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue