Fixed Threads_Yield clearning the Quantum, not the remaining timesteps
authorJohn Hodge <[email protected]>
Sun, 27 Sep 2009 02:09:18 +0000 (10:09 +0800)
committerJohn Hodge <[email protected]>
Sun, 27 Sep 2009 02:09:18 +0000 (10:09 +0800)
Kernel/threads.c

index 9b8b30f..7fb31f4 100644 (file)
@@ -335,7 +335,7 @@ void Threads_Kill(tThread *Thread, int Status)
  */
 void Threads_Yield()
 {
-       Proc_GetCurThread()->Quantum = 0;
+       Proc_GetCurThread()->Remaining = 0;
        HALT();
 }
 

UCC git Repository :: git.ucc.asn.au