We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af6d2ed commit e18abbfCopy full SHA for e18abbf
library/std/src/thread/mod.rs
@@ -1524,7 +1524,10 @@ fn _assert_sync_and_send() {
1524
///
1525
/// On Linux:
1526
/// - It may overcount the amount of parallelism available when limited by a
1527
-/// process-wide affinity mask, or when affected by cgroup limits.
+/// process-wide affinity mask or cgroup quotas and cgroup2 fs or `sched_getaffinity()` can't be
1528
+/// queried, e.g. due to sandboxing.
1529
+/// - It may undercount the amount of parallelism if the current thread's affinity mask
1530
+/// does not reflect the process' cpuset, e.g. due to pinned threads.
1531
1532
/// On all targets:
1533
/// - It may overcount the amount of parallelism available when running in a VM
0 commit comments