| 503 | return out; |
| 504 | } |
| 505 | |
| 506 | std::vector<std::shared_ptr<MemoryPool>> MemoryManager::getAlivePools() const { |
| 507 | std::vector<std::shared_ptr<MemoryPool>> pools; |
| 508 | std::shared_lock guard{mutex_}; |
| 509 | pools.reserve(pools_.size()); |
| 510 | for (const auto& entry : pools_) { |