aml_wif_331710030
Snap for 8564071 from cbdde832e4a19f5acaf9b6d2311b9213c0a4a607 to mainline-wifi-release

Change-Id: I0f6319ba78cefa8477438a6e1fbdfd1f7141d003
tree: f15e382c8c37289b00f0119b13fa4cf1feda254c
  1. .github/
  2. ci/
  3. examples/
  4. fixtures/
  5. patches/
  6. src/
  7. .cargo_vcs_info.json
  8. .gitignore
  9. Android.bp
  10. Cargo.lock
  11. Cargo.toml
  12. Cargo.toml.orig
  13. cargo2android.json
  14. CHANGELOG.md
  15. CONTRIBUTING.md
  16. LICENSE-APACHE
  17. LICENSE-MIT
  18. METADATA
  19. MODULE_LICENSE_APACHE2
  20. OWNERS
  21. README.md
  22. 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();