Kernel/threads - Removed another nested lock
authorJohn Hodge <[email protected]>
Fri, 28 Oct 2011 01:44:41 +0000 (09:44 +0800)
committerJohn Hodge <[email protected]>
Fri, 28 Oct 2011 01:44:41 +0000 (09:44 +0800)
Kernel/threads.c

index 949f6d2..1393f54 100644 (file)
@@ -1661,12 +1661,12 @@ int Semaphore_Signal(tSemaphore *Sem, int AmmountToAdd)
                #endif
                
                // Wake the sleeper
-               SHORTLOCK( &glThreadListLock );
+//             SHORTLOCK( &glThreadListLock );
                if( toWake->Status != THREAD_STAT_ACTIVE )
                        Threads_AddActive(toWake);
                else
                        Warning("Thread %p (%i %s) is already awake", toWake, toWake->TID, toWake->ThreadName);
-               SHORTREL( &glThreadListLock );
+//             SHORTREL( &glThreadListLock );
        }
        SHORTREL( &Sem->Protector );
        

UCC git Repository :: git.ucc.asn.au