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

Function context

flow-rs/src/graph/context.rs:63–72  ·  view source on GitHub ↗
(name: String, ty: String, local_key: u64)

Source from the content-addressed store, hash-verified

61}
62
63pub(crate) fn context(name: String, ty: String, local_key: u64) -> Context {
64 Arc::new(ContextInner {
65 name,
66 ty,
67 local_key,
68 id: GRAPH_ID.fetch_add(1, Ordering::Relaxed),
69 lock_ops: Event::new(),
70 is_closed: AtomicBool::new(false),
71 })
72}

Callers 3

startMethod · 0.85
graph_registerFunction · 0.85
load_implFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected