Skip to main content

BLOCKED_TASKS

Static BLOCKED_TASKS 

Source
pub(crate) static BLOCKED_TASKS: SpinLock<BTreeMap<TaskId, Arc<Task>>>
Expand description

Blocked tasks registry : hot path: block/wake.

This lock is independent of GLOBAL_SCHED_STATE. The block and wake paths acquire only this lock + the target CPU’s LOCAL_SCHEDULERS[cpu] lock, avoiding contention with cold-path operations (fork, exit, kill).

Lock order: BLOCKED_TASKS before LOCAL (never the reverse).