X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Tools%2Fnativelib%2Fthreads.c;h=9a4bfdfb68ed4b97e6afa4c8f338ac4c3bc90d47;hb=cd8146698b87d571d8393336fb013e6406ba7e5a;hp=b698770acc6df8b7ca82dd1e6378085ca95bccbc;hpb=1fd6ee5170d5e2bf9b443dc822138b156d53e18a;p=tpg%2Facess2.git diff --git a/Tools/nativelib/threads.c b/Tools/nativelib/threads.c index b698770a..9a4bfdfb 100644 --- a/Tools/nativelib/threads.c +++ b/Tools/nativelib/threads.c @@ -22,7 +22,10 @@ tShortSpinlock glThreadListLock; // === CODE === void Threads_int_Init(void) { - lpThreads_This = Threads_int_CreateTCB(NULL); + if( !lpThreads_This ) { + lpThreads_This = Threads_int_CreateTCB(NULL); + Threads_SetName("ThreadZero"); + } } tThread *Proc_GetCurThread(void)