Kernel - Fixed a double-lock in message handling
authorJohn Hodge <[email protected]>
Thu, 24 Nov 2011 08:13:32 +0000 (16:13 +0800)
committerJohn Hodge <[email protected]>
Thu, 24 Nov 2011 08:13:32 +0000 (16:13 +0800)
Kernel/messages.c

index 2c0e448..1391d99 100644 (file)
@@ -65,10 +65,8 @@ int Proc_SendMessage(Uint *Err, Uint Dest, int Length, void *Data)
        
        SHORTREL(&thread->IsLocked);
        
-       SHORTLOCK(&glThreadListLock);
        LOG("Waking %p (%i %s)", thread, thread->TID, thread->ThreadName);
        Threads_Wake( thread );
-       SHORTREL(&glThreadListLock);
        
        LEAVE_RET('i', 0);
 }

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