Module task

Source
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
kernel_stack ๐Ÿ”’
preempt ๐Ÿ”’
processor ๐Ÿ”’
scheduler
Scheduling subsystem (in-OSTD part).
utils ๐Ÿ”’

Structsยง

CurrentTask
The current task.
DisabledPreemptGuard
A guard for disable preempt.
Task
A task that executes a function to the end.
TaskOptions
Options to create or spawn a new task.

Staticsยง

POST_SCHEDULE_HANDLER ๐Ÿ”’

Traitsยง

TaskContextApi
Trait for manipulating the task context.

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.