rust/library/std/src/sys
bors fecfc0e6cc Auto merge of #89310 - joshtriplett:available-concurrency-affinity, r=m-ou-se
Make `std:🧵:available_concurrency` support process-limited number of CPUs

Use `libc::sched_getaffinity` and count the number of CPUs in the returned mask. This handles cases where the process doesn't have access to all CPUs, such as when limited via `taskset` or similar.

This also covers cgroup cpusets.
2021-11-07 11:53:25 +00:00
..
common STD support for the ESP-IDF framework 2021-08-10 12:09:00 +03:00
hermit hermit: Implement Condvar::wait_timeout 2021-10-29 17:20:03 +02:00
itron itron: Rename itron:🧵:{available_conccurrency -> available_parallelism} 2021-11-01 10:45:51 +09:00
sgx Rename std:🧵:available_onccurrency to std:🧵:available_parallelism 2021-09-28 14:59:33 +02:00
solid Add SOLID targets 2021-09-28 11:31:47 +09:00
unix Auto merge of #89310 - joshtriplett:available-concurrency-affinity, r=m-ou-se 2021-11-07 11:53:25 +00:00
unsupported Rename std:🧵:available_onccurrency to std:🧵:available_parallelism 2021-09-28 14:59:33 +02:00
wasi Rename std:🧵:available_onccurrency to std:🧵:available_parallelism 2021-09-28 14:59:33 +02:00
wasm Rename std:🧵:available_onccurrency to std:🧵:available_parallelism 2021-09-28 14:59:33 +02:00
windows Run destructors from existing tls callback 2021-11-01 15:19:49 +00:00
mod.rs Add SOLID targets 2021-09-28 11:31:47 +09:00