Function lrs::thread::cpu_count

Returns the number of CPUs available to this thread.

Syntax

fn cpu_count() -> Result<usize, Errno>

Remarks

Use cpus to get the number of CPUs available to other threads.

See also