cpu_num

Function cpu_num 

Source
pub fn cpu_num() -> usize
Expand description

Get the number of CPU cores available on this platform.

The platform should either get this value statically from its configuration or dynamically by platform-specific methods.

For statically configured platforms, by convention, this value should be the same as MAX_CPU_NUM defined in the platform configuration.