Fixed Threads_Yield clearning the Quantum, not the remaining timesteps
[tpg/acess2.git] / Kernel / threads.c
index 1ccac9f..7fb31f4 100644 (file)
@@ -137,6 +137,8 @@ void Threads_SetTickets(int Num)
  */
 int Threads_WaitTID(int TID, int *status)
 {
+       Threads_Dump();
+       
        // Any Child
        if(TID == -1) {
                
@@ -333,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