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

Method wait

src/thread_pool.rs:1069–1073  ·  view source on GitHub ↗

Waits for a signal on this member's semaphore.

(&self)

Source from the content-addressed store, hash-verified

1067impl Membership {
1068 /// Returns this worker's index within its thread pool.
1069 ///
1070 /// The index is stable for the lifetime of the membership and is unique
1071 /// among concurrent members of the same pool.
1072 #[inline(always)]
1073 pub fn member_index(&self) -> usize {
1074 self.member_index
1075 }
1076

Callers 3

activateMethod · 0.45
wait_forMethod · 0.45
managed_workerFunction · 0.45

Calls 1

semaphoreMethod · 0.80

Tested by

no test coverage detected