MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / remove_self

Method remove_self

src/core/impl/graph/var_node.cpp:31–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void MemAllocPlan::ReadonlyFwdList::remove_self() {
32 MGB_LOCK_GUARD(list_mutex);
33 if (m_prev) {
34 if (m_next) {
35 m_prev->m_readonly_fwd_list.m_next = m_next;
36 m_next->m_readonly_fwd_list.m_prev = m_prev;
37 } else {
38 m_prev->m_readonly_fwd_list.m_next = nullptr;
39 }
40 m_prev = m_next = nullptr;
41 }
42}
43
44MemAllocPlan::Chunk MemAllocPlan::sm_chunk_invalid_cond_exec_marker{nullptr};
45

Callers 1

var_node.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected