(&self)
| 1386 | /// Capacity of the per-worker work-stealing queue. This is the maximum |
| 1387 | /// amount a worker can make available for stealing at once. |
| 1388 | const STEAL_QUEUE_CAPACITY: usize = 32; |
| 1389 | |
| 1390 | /// The minimum number of CPU ticks between calls to [`Worker::promote_cold`]. |
| 1391 | /// Approximately 5μs at 3 GHz. |
| 1392 | const PROMOTE_TICK_INTERVAL: u64 = 15_000; |
| 1393 | |
| 1394 | /// Try to promote the oldest task in the queue. |
| 1395 | #[inline(always)] |
| 1396 | fn promote(&self) { |
| 1397 | // Promotions are fairly costly, so we limit their frequency using the |
no test coverage detected