Skip to main content

current_thread_cpus

Function current_thread_cpus 

Source
pub fn current_thread_cpus() -> Result<Vec<usize>>
Expand description

Returns the CPUs on which the calling thread is allowed to run.

ยงErrors

Kernel errno from sched_getaffinity(2). Unsupported on non-Linux targets.