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

Method wake

src/latch.rs:280–284  ·  view source on GitHub ↗
(self: Arc<Self>)

Source from the content-addressed store, hash-verified

278 // (meaning the state is no longer set to ASLEEP) then this will
279 // return immediately.
280 //
281 // If the state is still ASLEEP, then the next call to `wake` will
282 // register that and call `wake_on`.
283 //
284 // Either way, there is no way we can fail to receive a `wake`.
285 atomic_wait::wait(&self.state, ASLEEP);
286 // Clear the sleeping bit for this worker.
287 waiting_bitmask.fetch_and(!seat_mask, Ordering::Relaxed);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected