about summary refs log tree commit diff
path: root/library/std/src/thread
diff options
context:
space:
mode:
authorThe 8472 <git@infinite-source.de>2022-06-09 20:52:17 +0200
committerThe 8472 <git@infinite-source.de>2022-06-09 20:52:17 +0200
commitd8234620109cf0f69089f37ca94c4fab22c0560f (patch)
treeeb29dd07c5e3e7ae75eb99863db5e996c4e58abb /library/std/src/thread
parent09d52bc5d4260bac8b9a2ea8ac7a07c5c72906f1 (diff)
downloadrust-d8234620109cf0f69089f37ca94c4fab22c0560f.tar.gz
rust-d8234620109cf0f69089f37ca94c4fab22c0560f.zip
add cgroupv1 support to available_parallelism
Diffstat (limited to 'library/std/src/thread')
-rw-r--r--library/std/src/thread/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs
index 7f9b297e9dc..f02a7de04e5 100644
--- a/library/std/src/thread/mod.rs
+++ b/library/std/src/thread/mod.rs
@@ -1571,7 +1571,7 @@ fn _assert_sync_and_send() {
 ///
 /// On Linux:
 /// - It may overcount the amount of parallelism available when limited by a
-///   process-wide affinity mask or cgroup quotas and cgroup2 fs or `sched_getaffinity()` can't be
+///   process-wide affinity mask or cgroup quotas and `sched_getaffinity()` or cgroup fs can't be
 ///   queried, e.g. due to sandboxing.
 /// - It may undercount the amount of parallelism if the current thread's affinity mask
 ///   does not reflect the process' cpuset, e.g. due to pinned threads.