| 51 | pool->free(event); |
| 52 | } |
| 53 | std::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 | } |
| 61 | EventPool::~EventPool() { |
| 62 | for (auto&& i : m_cn2pool) { |
| 63 | i.second.assert_all_freed(); |
nothing calls this directly
no test coverage detected