pub fn process_cpu_affinity() -> Option<CpuSet>Expand description
Return the process affinity mask as logical CPU identifiers when supported.
The returned set preserves sparse operating-system CPU IDs. Platforms where
the standard affinity API exposes only a count return None.
ยงExamples
if let Some(cpus) = tenferro_cpu::process_cpu_affinity() {
assert!(!cpus.is_empty());
}