(&self, sleeping: u32)
| 1331 | /// Workers have one core memory-safety guarantee: Any jobs added to the worker |
| 1332 | /// will eventually be executed. |
| 1333 | pub struct Worker { |
| 1334 | /// Registers the worker as belonging to a specific thread pool, and |
| 1335 | /// potentially also grants "membership" on that thread-pool. |
| 1336 | pub(crate) membership: Membership, |
| 1337 | /// A sequence of jobs waiting to be executed. Newer jobs are executed |
| 1338 | /// before older ones, allowing efficient depth-first execution. During |
| 1339 | /// promotion, the oldest job is shared. Populated by `join()`. |
| 1340 | /// |
| 1341 | /// Jobs in this queue take precedence over those in the fifo queue. |
| 1342 | lifo_queue: JobQueue, |
| 1343 | /// A sequence of jobs waiting to be executed. Older jobs are executed |
| 1344 | /// before newer ones, providing reliably low latency. During promotion, |
| 1345 | /// this queue is partitioned into chunks and the chunks are shared. |
| 1346 | /// Populated by `spawn()`. |
| 1347 | /// |
| 1348 | /// Jobs in this queue are executed only when the lifo queue is empty. |
no test coverage detected