Line data Source code
1 : #include "SpUtils.hpp" 2 : 3 : /** The id of the "current" calling thread */ 4 : thread_local long int GlobalThreadId = 0; 5 : 6 : /** Return the curren thread id */ 7 1084 : long int SpUtils::GetThreadId(){ 8 1084 : return GlobalThreadId; 9 : } 10 : 11 : /** Set the thread id (should be call by the runtime */ 12 152 : void SpUtils::SetThreadId(const long int inThreadId){ 13 152 : GlobalThreadId = inThreadId; 14 152 : }