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

Method yield_now

src/thread_pool.rs:1489–1498  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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

Callers 2

wait_forMethod · 0.80
managed_workerFunction · 0.80

Calls 3

promoteMethod · 0.80
find_workMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected