/// <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(); }
public static void Sleep(uint Cycles) { MT.Tasks[MT.CurrentTask].state = (int)Cycles; //Cycles should be positive =P IRQ.Timer(); }
/// <summary> /// Stop Refrenced Thread /// </summary> public void Stop() { this.State = State.Dead; IRQ.Timer(); }