Skip to main content

steal_task_local

Function steal_task_local 

Source
pub(super) fn steal_task_local(
    cpu: &mut SchedulerCpu,
    cpu_index: usize,
) -> Option<Arc<Task>>
Expand description

Steal a task from the busiest sibling CPU using per-CPU LOCAL locks.

Called with cpu borrowed from LOCAL_SCHEDULERS[cpu_index] (our own LOCAL lock already held). Uses try_lock_no_irqsave on sibling entries : if a sibling or the global scheduler state is contended, we skip stealing rather than waiting.