Struct project1::rr::RoundRobin
source · pub struct RoundRobin {}
Expand description
A round robin scheduler.
Implementations§
source§impl RoundRobin
impl RoundRobin
Trait Implementations§
source§impl Scheduler for RoundRobin
impl Scheduler for RoundRobin
source§fn next_to_run(&self) -> Option<Box<Thread>>
fn next_to_run(&self) -> Option<Box<Thread>>
Peek a next thread to run. Read more
source§fn push_to_queue(&self, thread: Box<Thread>)
fn push_to_queue(&self, thread: Box<Thread>)
Push a thread
th
into scheduling queue.source§fn timer_tick(&self)
fn timer_tick(&self)
Called on every timer interrupt (1ms).
impl Send for RoundRobin
impl Sync for RoundRobin
Auto Trait Implementations§
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
const: unstable§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more