Snap for 8564071 from cbdde832e4a19f5acaf9b6d2311b9213c0a4a607 to mainline-art-release Change-Id: I518d24f84d7aa85f317a66915f2b0e8336578a1a
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();