Snap for 8512216 from 9f8910ae8692c12635e0e1f572c14e0357dd3f57 to tm-frc-art-release Change-Id: Ica4c9d00a8a7f47bbcef2ec84d9d8aa63c12d127
Count the number of CPUs on the current machine.
Add to Cargo.toml:
[dependencies] num_cpus = "1.0"
In your main.rs or lib.rs:
main.rs
lib.rs
extern crate num_cpus; // count logical cores this process could try to use let num = num_cpus::get();