}
}
+void Threads_SetThread(int TID)
+{
+ tThread *thread;
+ for( thread = gpThreads; thread; thread = thread->GlobalNext )
+ {
+ if( thread->TID == TID ) {
+ gpCurrentThread = thread;
+ return ;
+ }
+ }
+ Log_Error("Threads", "_SetThread - Thread %i is not on global list", TID);
+}
+
tThread *Threads_GetThread(int TID)
{
tThread *thread;
Uint *Threads_GetCfgPtr(int Index)
{
+// Log_Debug("Threads", "Index=%i, gpCurrentThread=%p",
+// Index, gpCurrentThread);
if( Index < 0 || Index >= NUM_CFG_ENTRIES )
return NULL;
if( !gpCurrentThread )