Skip to main content

check_sched_task_executor_backing

Function check_sched_task_executor_backing 

Source
pub fn check_sched_task_executor_backing(
    n_sched_tasks: usize,
    backing: &[SchedTaskExecutorBackingSlot],
) -> Result<(), SchedTaskBackingShort>
Expand description

The ONE refusal every board’s run_sched_tasks makes before it opens anything: n_sched_tasks sched tasks run, one on the boot executor, so n_sched_tasks - 1 must each find a slot. Checked up front rather than at each spawn, so a short block never leaves a half-spawned sched task chain.