Ejemplo n.º 1
0
 /// <summary>
 /// Die Current Thread
 /// </summary>
 public static void Die()
 {
     MT.Tasks[MT.CurrentTask].state = (int)State.Dead;
     //As we have done our code, so let other thread to start...So we fire IRQ0
     IRQ.Timer();
 }
Ejemplo n.º 2
0
 public static void Sleep(uint Cycles)
 {
     MT.Tasks[MT.CurrentTask].state = (int)Cycles; //Cycles should be positive =P
     IRQ.Timer();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Stop Refrenced Thread
 /// </summary>
 public void Stop()
 {
     this.State = State.Dead;
     IRQ.Timer();
 }