From 619877fed82169cec4a1a39c8f6cafb5bfef56db Mon Sep 17 00:00:00 2001 From: avolkov Date: Thu, 30 Jan 2003 19:05:14 +0000 Subject: [PATCH] trivial fix for thread descriptor race git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@608 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/threads/thrcommon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc2/src/sc2code/libs/threads/thrcommon.c b/sc2/src/sc2code/libs/threads/thrcommon.c index 1500e55f8..9c602e5b2 100644 --- a/sc2/src/sc2code/libs/threads/thrcommon.c +++ b/sc2/src/sc2code/libs/threads/thrcommon.c @@ -147,9 +147,9 @@ static char *ThreadNameNative (Uint32 native) { volatile Thread ptr; - ptr = threadQueue; if (threadQueueSemaphore) NativeSetSemaphore (threadQueueSemaphore); + ptr = threadQueue; while (ptr && NativeGetThreadID (ptr->native) != native) { ptr = ptr->next;