Function liboskar::utils::get_processors
[−]
[src]
pub fn get_processors() -> usize
Helper function to get the number of CPUs. We subtract 1, because the main thread that's doing the spawning counts as one OS thread.