From: John Hodge Date: Wed, 2 Mar 2011 05:04:09 +0000 (+0800) Subject: Added debug (disabled) to Semaphore_Signal X-Git-Tag: rel0.10~168 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=b212c4457a23853b8abad73feddc64b483c022e2;p=tpg%2Facess2.git Added debug (disabled) to Semaphore_Signal - Used to find bugs in keyboard interrupt handler --- diff --git a/Kernel/threads.c b/Kernel/threads.c index b5ce1917..33b85c6d 100644 --- 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;