| 123 | static InitInstance<Mutex> mutex; // guard InitCDS::m_pools |
| 124 | |
| 125 | MemoryPool* InitCDS::createPool() |
| 126 | { |
| 127 | MemoryPool* pool = MemoryPool::createPool(nullptr, m_stats); |
| 128 | MemoryStats* newStats = FB_NEW_POOL(*pool) MemoryStats; |
| 129 | pool->setStatsGroup(*newStats); |
| 130 | |
| 131 | MutexLockGuard guard(mutex(), FB_FUNCTION); |
| 132 | m_pools->push(pool); |
| 133 | return pool; |
| 134 | } |
| 135 | |
| 136 | } // namespace Jrd |
no test coverage detected