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

Method new

flow-rs/src/debug/feature.rs:20–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19impl Feature {
20 pub const fn new() -> Feature {
21 Feature {
22 enable: AtomicBool::new(false),
23 lock_ops: Event::new(),
24 }
25 }
26
27 pub fn enable(&self) -> bool {
28 self.enable.load(Ordering::Relaxed)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected