pub struct PerCpuQueue { /* private fields */ }Expand description
Per-CPU run queue.
Implementations§
Source§impl PerCpuQueue
impl PerCpuQueue
Sourcepub fn steal(&self) -> Vec<ProcessId>
pub fn steal(&self) -> Vec<ProcessId>
Steal half the tasks from this queue (from the back = newest).
Returns stolen tasks or an empty vec if queue is below threshold.
Sourcepub fn queue_length(&self) -> u32
pub fn queue_length(&self) -> u32
Get the current queue length (lock-free).