We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 74a0c49 + fd25491 commit 1680359Copy full SHA for 1680359
library/std/src/thread/mod.rs
@@ -1449,6 +1449,10 @@ fn _assert_sync_and_send() {
1449
/// global state in order to more accurately query the amount of available
1450
/// parallelism.
1451
///
1452
+/// Resource limits can be changed during the runtime of a program, therefore the value is
1453
+/// not cached and instead recomputed every time this function is called. It should not be
1454
+/// called from hot code.
1455
+///
1456
/// The value returned by this function should be considered a simplified
1457
/// approximation of the actual amount of parallelism available at any given
1458
/// time. To get a more detailed or precise overview of the amount of
0 commit comments