| 9 | } |
| 10 | |
| 11 | CBlockMemoryPool::~CBlockMemoryPool() { |
| 12 | // free all memory |
| 13 | std::unique_lock<std::mutex> lock(_large_mutex); |
| 14 | for (auto iter = _free_mem_vec.begin(); iter != _free_mem_vec.end(); ++iter) { |
| 15 | free(*iter); |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | void* CBlockMemoryPool::PoolLargeMalloc() { |
| 20 | std::unique_lock<std::mutex> lock(_large_mutex); |
nothing calls this directly
no outgoing calls
no test coverage detected