X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Fsemaphore.c;h=2c9fc94b47303e90f0ffe6827f5e9256cb1a6c81;hb=04a050f42807686dc119838c82372409246d55bb;hp=e43547a2233d7b1069b82b2ed14a79cea2493ea5;hpb=2a2e04c65347ba90cdb7d841ff2c8ca0adcf531f;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/semaphore.c b/KernelLand/Kernel/semaphore.c index e43547a2..2c9fc94b 100644 --- a/KernelLand/Kernel/semaphore.c +++ b/KernelLand/Kernel/semaphore.c @@ -127,10 +127,8 @@ int Semaphore_Wait(tSemaphore *Sem, int MaxToTake) toWake->RetStatus = given; // Wake the sleeper - SHORTLOCK( &glThreadListLock ); if( toWake->Status != THREAD_STAT_ACTIVE ) Threads_AddActive(toWake); - SHORTREL( &glThreadListLock ); } SHORTREL( &Sem->Protector );