Function shadow_rs::core::cpu::count_physical_cores

source ยท
pub fn count_physical_cores() -> u32
Expand description

Count the number of physical cores available. Uses sched_getaffinity so should take into account CPU affinity and cgroups.