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

Method find_local_work

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

Source from the content-addressed store, hash-verified

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

Callers 2

find_workMethod · 0.80
yield_localMethod · 0.80

Calls 4

pop_newestMethod · 0.80
broadcast_queueMethod · 0.80
pop_oldestMethod · 0.80
sharing_queueMethod · 0.80

Tested by

no test coverage detected