18 LWPools::PoolList LWPools::s_pools;
22 LWPools::PoolList::PoolList()
28 void LWPools::PoolList::nullout()
31 m_poolarr[
i] =
nullptr;
36 void LWPools::PoolList::cleanup()
38 #ifdef LW_DEBUG_POOLS_DEBUG_USAGE
39 std::scoped_lock lock (m_mutex);
40 if (!m_memoryHandedOut.empty())
41 std::cout<<
"LWPools::PoolList::cleanup() WARNING: "<<m_memoryHandedOut.size()
42 <<
" unreleased pool allocations"<<std::endl;
45 LWPool*
p = m_poolarr[
i].exchange (
nullptr);
47 s_bytesDynAlloc -=
sizeof(
LWPool);
61 s_pools[
idx].compare_exchange_strong (
exp,
pool);
89 if (
p)
l+=
p->getMemDishedOut();