We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2c410e commit 2e33c81Copy full SHA for 2e33c81
library/std/src/thread/mod.rs
@@ -1575,6 +1575,11 @@ fn _assert_sync_and_send() {
1575
/// queried, e.g. due to sandboxing.
1576
/// - It may undercount the amount of parallelism if the current thread's affinity mask
1577
/// does not reflect the process' cpuset, e.g. due to pinned threads.
1578
+/// - If the process is in a cgroup v1 cpu controller, this may need to
1579
+/// scan mountpoints to find the corresponding cgroup v1 controller,
1580
+/// which may take time on systems with large numbers of mountpoints.
1581
+/// (This does not apply to cgroup v2, or to processes not in a
1582
+/// cgroup.)
1583
///
1584
/// On all targets:
1585
/// - It may overcount the amount of parallelism available when running in a VM
0 commit comments