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/// [`Worker::wait_for_type`]).
1405#[derive(Clone, Copy, PartialEq, Eq)]
1406pub(crate) enum WaitType {
1407 /// Any work.
1408 Any,
1409 /// For a `join`: skips spawned work and the global queue, so a long job
1410 /// doesn't hold up the `join`.
1411 Join,
1412}
1413
1414/// Describes the outcome of a call to [`Worker::yield_now`] or
1415/// [`Worker::yield_local`].

Callers 1

yield_nowMethod · 0.80

Calls 2

find_local_workMethod · 0.80
steal_from_siblingsMethod · 0.80

Tested by

no test coverage detected