X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Fworkqueue.c;h=2cd6a2581a86e94fd81753db64a63277f7daa481;hb=733cd5c013a1a67eca03b158a257e0fb18b9545e;hp=9e2c6f6fff7f86a13c4758e443ca99ed3869a9ac;hpb=934d0f535e1929fd90ae0606e77794484aa55284;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/workqueue.c b/KernelLand/Kernel/workqueue.c index 9e2c6f6f..2cd6a258 100644 --- a/KernelLand/Kernel/workqueue.c +++ b/KernelLand/Kernel/workqueue.c @@ -46,10 +46,7 @@ void *Workqueue_GetWork(tWorkqueue *Queue) SHORTREL(&glThreadListLock); // Yield and sleep - Threads_Yield(); - if(us->Status == THREAD_STAT_QUEUESLEEP) { - // Why are we awake?! - } + Threads_int_WaitForStatusEnd(THREAD_STAT_QUEUESLEEP); us->WaitPointer = NULL; }