MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / close

Method close

flow-rs/src/graph/context.rs:27–35  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

25
26impl ContextInner {
27 pub fn close(&self) {
28 if self
29 .is_closed
30 .compare_exchange(false, true, Ordering::Release, Ordering::Relaxed)
31 .is_ok()
32 {
33 self.lock_ops.notify(usize::MAX);
34 }
35 }
36 pub fn is_closed(&self) -> bool {
37 self.is_closed.load(Ordering::Relaxed)
38 }

Callers 2

stopMethod · 0.45
startMethod · 0.45

Calls 1

notifyMethod · 0.80

Tested by

no test coverage detected