Function task::scheduler::tasks

source ·
pub fn tasks() -> Vec<(CpuId, Vec<TaskRef>)>
Expand description

Returns the list of tasks running on each CPU.

To avoid race conditions with migrating tasks, this function takes a lock over all system schedulers. This is incredibly disruptive and should be avoided at all costs.