From d069f04c4ae06ea7e0e71db144df338c1bd33ac2 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Fri, 28 Oct 2011 09:44:41 +0800 Subject: [PATCH] Kernel/threads - Removed another nested lock --- Kernel/threads.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/threads.c b/Kernel/threads.c index 949f6d23..1393f54a 100644 --- a/Kernel/threads.c +++ b/Kernel/threads.c @@ -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 ); -- 2.20.1