MCPcopy Create free account
hub / github.com/NthTensor/Forte / signal_random

Method signal_random

src/thread_pool.rs:1333–1345  ·  view source on GitHub ↗
(&self, sleeping: u32)

Source from the content-addressed store, hash-verified

1331/// Workers have one core memory-safety guarantee: Any jobs added to the worker
1332/// will eventually be executed.
1333pub 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.

Callers 1

promote_coldMethod · 0.80

Calls 2

next_usizeMethod · 0.80
signalMethod · 0.80

Tested by

no test coverage detected