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 /// How long a worker keeps searching for work after completing a part of a
1510 /// long workload (see [`WorkloadHint`](crate::WorkloadHint)). About the time
1511 /// it takes to wake a parked thread.
1512 pub(crate) const SEARCH_DURATION: Duration = Duration::from_micros(25);
1513
1514 /// A `join` whose inline half ran for at most this many heartbeats searches
1515 /// for [`Worker::SEARCH_DURATION`] before it parks to wait for its other
1516 /// half. A longer `join` parks right away: one wake adds little to it.
1517 const SHORT_JOIN_HEARTBEATS: u64 = 8;
1518

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