pub fn tick(&self) {
        // If I'm idle, tid == None, need_reschedule == false.
        // Will go back to `run()` after interrupt return.
        let tid = self.inner().proc.as_ref().map(|p| p.0);
        let need_reschedule = self.manager().tick(self.inner().id, tid);
        if need_reschedule {
            self.yield_now();
        }
    }
/// Called by timer interrupt handler.
///
/// The interrupt should be disabled in the handler.
Called by timer interrupt handler.
The interrupt should be disabled in the handler.
Called by timer interrupt handler . The interrupt should be disabled in the handler .
pub fn tick(&self) {
        // If I'm idle, tid == None, need_reschedule == false.
        // Will go back to `run()` after interrupt return.
        let tid = self.inner().proc.as_ref().map(|p| p.0);
        let need_reschedule = self.manager().tick(self.inner().id, tid);
        if need_reschedule {
            self.yield_now();
        }
    }
pub fn tick ( & self ) { // If I'm idle, tid == None, need_reschedule == false. // Will go back to `run()` after interrupt return. let tid = self . inner ( ) . proc . as_ref ( ) . map ( | p | p . 0 ) ; let need_reschedule = self . manager ( ) . tick ( self . inner ( ) . id , tid ) ; if need_reschedule { self . yield_now ( ) ; } }
Called by timer interrupt handler.
Called by timer interrupt handler .
&self
&self