Empty merge of sc-v2-dev-plus-aosp-without-vendor@8084891

Bug: 214455710
Merged-In: I370d35ba4fcb4dd0479d3e55943b1bd11ba17e81
Change-Id: Ic7f0e958274ae3c243277208c9561841221c3230
tree: 8bbf54f9a80e14b2209531a45fb81e1b14a102c5
  1. ci/
  2. examples/
  3. fixtures/
  4. patches/
  5. src/
  6. .appveyor.yml
  7. .cargo_vcs_info.json
  8. .gitignore
  9. .travis.yml
  10. Android.bp
  11. Cargo.lock
  12. Cargo.toml
  13. Cargo.toml.orig
  14. cargo2android.json
  15. CHANGELOG.md
  16. CONTRIBUTING.md
  17. LICENSE-APACHE
  18. LICENSE-MIT
  19. METADATA
  20. MODULE_LICENSE_APACHE2
  21. OWNERS
  22. README.md
  23. TEST_MAPPING
README.md

num_cpus

crates.io Travis CI Status AppVeyor status

Count the number of CPUs on the current machine.

Usage

Add to Cargo.toml:

[dependencies]
num_cpus = "1.0"

In your main.rs or lib.rs:

extern crate num_cpus;

// count logical cores this process could try to use
let num = num_cpus::get();