X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Fmutex.c;h=d74cde8f185dc62b55ca15c2cefecf53ea8f320c;hb=015f48988e0ff398409d71dfc692005ab439490a;hp=597242b6d6c179eaeb64319c27ac16692f1fc939;hpb=48743e39650eb1ef988380e9d95f27fd40d3a9ce;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/mutex.c b/KernelLand/Kernel/mutex.c index 597242b6..d74cde8f 100644 --- a/KernelLand/Kernel/mutex.c +++ b/KernelLand/Kernel/mutex.c @@ -66,7 +66,7 @@ int Mutex_Acquire(tMutex *Mutex) SHORTREL( &glThreadListLock ); SHORTREL( &Mutex->Protector ); - while(us->Status == THREAD_STAT_MUTEXSLEEP) Threads_Yield(); + Threads_int_WaitForStatusEnd(THREAD_STAT_MUTEXSLEEP); // We're only woken when we get the lock us->WaitPointer = NULL; }