pub struct Scheduler { /* private fields */ }Expand description
The scheduler struct. It keeps track of the tasks and threads in the system. This scheduler is a simple Rate Monotonic Scheduler (RMS) implementation.
Implementations§
Source§impl Scheduler
impl Scheduler
pub fn create_task( &mut self, desc: TaskDescriptor, ) -> Result<TaskId, KernelError>
pub fn create_thread( &mut self, entry: extern "C" fn(), fin: Option<extern "C" fn() -> !>, timing: Timing, task_id: TaskId, ) -> Result<ThreadUId, KernelError>
Auto Trait Implementations§
impl Freeze for Scheduler
impl RefUnwindSafe for Scheduler
impl !Send for Scheduler
impl !Sync for Scheduler
impl Unpin for Scheduler
impl UnwindSafe for Scheduler
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