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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user