pub struct TaskManager {
ready_queue: VecDeque<Arc<TaskControlBlock>>,
}
Fields
ready_queue: VecDeque<Arc<TaskControlBlock>>
Implementations
sourceimpl TaskManager
impl TaskManager
A simple FIFO scheduler.
pub fn new() -> Self
pub fn add(&mut self, task: Arc<TaskControlBlock>)
pub fn fetch(&mut self) -> Option<Arc<TaskControlBlock>>
pub fn remove(&mut self, task: Arc<TaskControlBlock>)
Auto Trait Implementations
impl !RefUnwindSafe for TaskManager
impl Send for TaskManager
impl Sync for TaskManager
impl Unpin for TaskManager
impl !UnwindSafe for TaskManager
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more