thread: Allow thread ID to be value returned by gettid()
Signed-off-by: Thomas Egerer <[email protected]>
This commit is contained in:
committed by
Tobias Brunner
parent
f00f679af9
commit
8ea4cb3e5d
@@ -516,7 +516,11 @@ thread_t *thread_current()
|
||||
*/
|
||||
u_int thread_current_id()
|
||||
{
|
||||
#ifdef USE_THREAD_IDS
|
||||
return get_current_thread()->id;
|
||||
#else
|
||||
return get_current_thread()->tid;
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user