X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Fevents.c;h=84a1b0a5f3c9a859b70939806744f8e28d0605b7;hb=75c6f0e9aa83ccc662620071eec8bff0a81aa3ef;hp=c3ab282ffbe09f80f0290569af431b3e680f171d;hpb=2db551c69841b4fb5a70ae05e08d54b1a016364b;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/events.c b/KernelLand/Kernel/events.c index c3ab282f..84a1b0a5 100644 --- a/KernelLand/Kernel/events.c +++ b/KernelLand/Kernel/events.c @@ -91,7 +91,7 @@ Uint32 Threads_WaitEvents(Uint32 EventMask) // Note stored anywhere because we're woken using other means SHORTREL( &glThreadListLock ); SHORTREL( &us->IsLocked ); - while(us->Status == THREAD_STAT_EVENTSLEEP) Threads_Yield(); + Threads_int_WaitForStatusEnd(THREAD_STAT_EVENTSLEEP); // Woken when lock is acquired SHORTLOCK( &us->IsLocked ); }