MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / ~LockBase

Method ~LockBase

src/opr-mm/impl/lock.cpp:50–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50LockBase::~LockBase() {
51 MGB_LOCK_GUARD(sm_lock_pool.mtx);
52 if (!--sm_lock_pool.id2lock.at(m_param.lock_id).refcnt) {
53 sm_lock_pool.id2lock.erase(m_param.lock_id);
54 }
55}
56
57void LockBase::add_input_layout_constraint() {
58 auto rst = owner_graph()

Callers

nothing calls this directly

Calls 2

atMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected