We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 625b180 + 41199f3 commit e65201cCopy full SHA for e65201c
library/std/src/thread/mod.rs
@@ -2018,6 +2018,9 @@ fn _assert_sync_and_send() {
2018
/// which may take time on systems with large numbers of mountpoints.
2019
/// (This does not apply to cgroup v2, or to processes not in a
2020
/// cgroup.)
2021
+/// - It does not attempt to take `ulimit` into account. If there is a limit set on the number of
2022
+/// threads, `available_parallelism` cannot know how much of that limit a Rust program should
2023
+/// take, or know in a reliable and race-free way how much of that limit is already taken.
2024
///
2025
/// On all targets:
2026
/// - It may overcount the amount of parallelism available when running in a VM
0 commit comments