Skip to main content

allowed_cpus

Function allowed_cpus 

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

The CPUs this process may run on, as indices (the affinity mask on Linux and Windows). Falls back to 0..cpu_count() (or one CPU) where the mask can’t be read.