thread: Allow thread ID to be value returned by gettid()

Signed-off-by: Thomas Egerer <[email protected]>
This commit is contained in:
Thomas Egerer
2016-03-04 09:12:11 +01:00
committed by Tobias Brunner
parent f00f679af9
commit 8ea4cb3e5d
4 changed files with 36 additions and 14 deletions
@@ -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
}
/**