Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make std::thread::available_concurrency support process-limited numbe…
…r 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.
- Loading branch information