Skip to main content

schedule_current_cpu

Function schedule_current_cpu 

Source
pub fn schedule_current_cpu() -> Result<SchedulerOutcome, TaskError>
Expand description

Runs one scheduler decision at a task/IRQ-return safe point.

The typed outcome distinguishes a completed decision, an in-flight park handshake, and bounded owner-work backpressure. It never clears need_resched before entering the scheduler.

ยงErrors

Returns TaskError::UnsafeContext in hard IRQ context and object-handle errors when runtime initialization is incomplete or inconsistent.