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

Method find_work

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

Source from the content-addressed store, hash-verified

1404 // This should ideally become a conditional jump.
1405 self.promote_cold(current_tick);
1406 }
1407 }
1408
1409 /// The actual work-promotion implementation. Must be called infrequently.
1410 #[cold]
1411 fn promote_cold(&self, current_tick: u64) {
1412 // Update the promote tick so that `promote` won't call this again soon.
1413 self.last_promote_tick.set(current_tick);
1414
1415 // Early out if it seems like all workers are already awake.

Callers 1

yield_nowMethod · 0.80

Calls 2

find_local_workMethod · 0.80
steal_from_siblingsMethod · 0.80

Tested by

no test coverage detected