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

Method check

src/latch.rs:75–81  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

73}
74
75impl Latch {
76 /// Creates a new latch backed by the provided semaphore.
77 pub fn new(semaphore: &'static Semaphore) -> Latch {
78 Latch {
79 state: AtomicU32::new(LOCKED),
80 semaphore,
81 }
82 }
83
84 /// Checks to see if the latch has been set.

Callers 1

wait_forMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected