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

Method on_comp_node_finalize

imperative/src/impl/event_pool.cpp:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 pool->free(event);
52}
53std::shared_ptr<void> EventPool::on_comp_node_finalize() {
54 MGB_LOCK_GUARD(m_lock);
55 for (auto&& i : m_cn2pool) {
56 i.second.assert_all_freed();
57 }
58 m_cn2pool.clear();
59 return {};
60}
61EventPool::~EventPool() {
62 for (auto&& i : m_cn2pool) {
63 i.second.assert_all_freed();

Callers

nothing calls this directly

Calls 2

assert_all_freedMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected