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

Method execute

src/thread_pool.rs:1511–1515  ·  view source on GitHub ↗
(&self, job_ref: JobRef, migrated: bool)

Source from the content-addressed store, hash-verified

1509 /// when the latch is set or more work becomes available.
1510 ///
1511 /// This function does not panic: jobs never allow panics from user code
1512 /// to escape their execution (see the panic convention on `JobRef`).
1513 #[inline(always)]
1514 pub fn wait_for(&self, latch: &Latch) -> bool {
1515 loop {
1516 match latch.check() {
1517 Status::Pending => {
1518 if self.yield_now() == Yield::Idle {

Callers 3

promote_coldMethod · 0.45
yield_localMethod · 0.45
yield_nowMethod · 0.45

Calls 1

setMethod · 0.80

Tested by

no test coverage detected