Expand description
Tasks are the unit of code execution.
Re-exports§
pub use self::scheduler::info::AtomicCpuId;
pub use self::scheduler::info::TaskScheduleInfo;
Modules§
- atomic_
mode - Atomic Mode
- scheduler
- Task scheduling.
Structs§
- Current
Task - The current task.
- Disabled
Preempt Guard - A guard for disable preempt.
- Task
- A task that executes a function to the end.
- Task
Options - Options to create or spawn a new task.
Functions§
- disable_
preempt - Disables preemption.
- halt_
cpu - Halts the CPU until interrupts if no preemption is required.
- inject_
post_ schedule_ handler - Injects a handler to be executed after scheduling.
- inject_
pre_ schedule_ handler - Injects a handler to be executed before scheduling.