From: John Hodge Date: Sun, 27 Sep 2009 02:09:18 +0000 (+0800) Subject: Fixed Threads_Yield clearning the Quantum, not the remaining timesteps X-Git-Tag: rel0.06~480 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=f0f0eaa72e3dc58940b326e2a78d6aaaccf33514;p=tpg%2Facess2.git Fixed Threads_Yield clearning the Quantum, not the remaining timesteps --- diff --git a/Kernel/threads.c b/Kernel/threads.c index 9b8b30f9..7fb31f49 100644 --- a/Kernel/threads.c +++ b/Kernel/threads.c @@ -335,7 +335,7 @@ void Threads_Kill(tThread *Thread, int Status) */ void Threads_Yield() { - Proc_GetCurThread()->Quantum = 0; + Proc_GetCurThread()->Remaining = 0; HALT(); }