mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-06 20:13:42 +00:00
revert num_cpus change
This commit is contained in:
parent
82cb207607
commit
2ff1f45ead
@ -1198,6 +1198,12 @@ fn get_concurrency() -> usize {
|
||||
1
|
||||
}
|
||||
|
||||
#[cfg(target_os = "redox")]
|
||||
fn num_cpus() -> usize {
|
||||
// FIXME: Implement num_cpus on Redox
|
||||
1
|
||||
}
|
||||
|
||||
#[cfg(any(
|
||||
all(target_arch = "wasm32", not(target_os = "emscripten")),
|
||||
all(target_vendor = "fortanix", target_env = "sgx")
|
||||
@ -1215,7 +1221,6 @@ fn get_concurrency() -> usize {
|
||||
target_os = "linux",
|
||||
target_os = "macos",
|
||||
target_os = "solaris",
|
||||
target_os = "redox",
|
||||
))]
|
||||
fn num_cpus() -> usize {
|
||||
unsafe { libc::sysconf(libc::_SC_NPROCESSORS_ONLN) as usize }
|
||||
|
Loading…
Reference in New Issue
Block a user