Struct os::task::manager::TaskManager
source · pub struct TaskManager {
ready_queue: VecDeque<Arc<TaskControlBlock>>,
}
Fields§
§ready_queue: VecDeque<Arc<TaskControlBlock>>
Implementations§
source§impl 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more