(&self)
| 1487 | } |
| 1488 | |
| 1489 | /// Returns the thread pool this worker belongs to. |
| 1490 | #[inline(always)] |
| 1491 | pub fn thread_pool(&self) -> &'static ThreadPool { |
| 1492 | self.thread_pool |
| 1493 | } |
| 1494 | |
| 1495 | /// Capacity of the per-worker work-stealing queue. This is the maximum |
| 1496 | /// amount a worker can make available for stealing at once. |
| 1497 | const STEAL_QUEUE_CAPACITY: usize = 32; |
| 1498 | |
| 1499 | /// The local `join` queue depth at which [`Worker::join`] stops exposing |
| 1500 | /// work and runs both closures inline. Once this many subtrees are queued |
| 1501 | /// locally there is enough work for other workers to take, so exposing |
no test coverage detected