git.ucc.asn.au
/
tpg
/
acess2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c7a9ee
)
Kernel/threads - Removed another nested lock
author
John Hodge
<
[email protected]
>
Fri, 28 Oct 2011 01:44:41 +0000
(09:44 +0800)
committer
John Hodge
<
[email protected]
>
Fri, 28 Oct 2011 01:44:41 +0000
(09:44 +0800)
Kernel/threads.c
patch
|
blob
|
history
diff --git
a/Kernel/threads.c
b/Kernel/threads.c
index
949f6d2
..
1393f54
100644
(file)
--- 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 );
UCC
git Repository :: git.ucc.asn.au