trivial fix for thread descriptor race

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@608 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2003-01-30 19:05:14 +00:00
parent 528ec82d08
commit 619877fed8
+1 -1
View File
@@ -147,9 +147,9 @@ static char *ThreadNameNative (Uint32 native)
{ {
volatile Thread ptr; volatile Thread ptr;
ptr = threadQueue;
if (threadQueueSemaphore) if (threadQueueSemaphore)
NativeSetSemaphore (threadQueueSemaphore); NativeSetSemaphore (threadQueueSemaphore);
ptr = threadQueue;
while (ptr && NativeGetThreadID (ptr->native) != native) while (ptr && NativeGetThreadID (ptr->native) != native)
{ {
ptr = ptr->next; ptr = ptr->next;