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:
d865234
)
Added debug (disabled) to Semaphore_Signal
author
John Hodge
<
[email protected]
>
Wed, 2 Mar 2011 05:04:09 +0000
(13:04 +0800)
committer
John Hodge
<
[email protected]
>
Wed, 2 Mar 2011 05:04:09 +0000
(13:04 +0800)
- Used to find bugs in keyboard interrupt handler
Kernel/threads.c
patch
|
blob
|
history
diff --git
a/Kernel/threads.c
b/Kernel/threads.c
index
b5ce191
..
33b85c6
100644
(file)
--- a/
Kernel/threads.c
+++ b/
Kernel/threads.c
@@
-1475,8
+1475,12
@@
int Semaphore_Signal(tSemaphore *Sem, int AmmountToAdd)
if( Sem->MaxValue && Sem->Value == Sem->MaxValue )
{
tThread *us;
- SHORTLOCK( &glThreadListLock );
+ #if 0
+ Log_Debug("Threads", "Semaphore_Signal: IDLE Sem = %s:%s", Sem->ModName, Sem->Name);
+ Log_Debug("Threads", "Semaphore_Signal: Sem->Value(%i) == Sem->MaxValue(%i)", Sem->Value, Sem->MaxValue);
+ #endif
+ SHORTLOCK( &glThreadListLock );
// - Remove from active list
us = Threads_RemActive();
us->Next = NULL;
UCC
git Repository :: git.ucc.asn.au