pub fn reschedule_and_wait(&mut self) {
		irq::disable();
		self.scheduler();

		// Reenable interrupts and simultaneously set the CPU into the HALT state to only wake up at the next interrupt.
		// This atomic operation guarantees that we cannot miss a wakeup interrupt in between.
		irq::enable_and_wait();
	}
/// Only the idle task should call this function to
/// reschdule the system. Set the idle task in halt
/// state by leaving this function.
Only the idle task should call this function to
reschdule the system. Set the idle task in halt
state by leaving this function.
Only the idle task should call this function to reschdule the system . Set the idle task in halt state by leaving this function .
pub fn reschedule_and_wait(&mut self) {
		irq::disable();
		self.scheduler();
		// Reenable interrupts and simultaneously set the CPU into the HALT state to only wake up at the next interrupt.
		// This atomic operation guarantees that we cannot miss a wakeup interrupt in between.
		irq::enable_and_wait();
	}
pub fn reschedule_and_wait ( & mut self ) { irq :: disable ( ) ; self . scheduler ( ) ; // Reenable interrupts and simultaneously set the CPU into the HALT state to only wake up at the next interrupt. // This atomic operation guarantees that we cannot miss a wakeup interrupt in between. irq :: enable_and_wait ( ) ; }
Only the idle task should call this function to
reschdule the system.
Only the idle task should call this function to reschdule the system .
&mut self
&mut self