MCPcopy Create free account
hub / github.com/caozhiyi/CppNet / ~CBlockMemoryPool

Method ~CBlockMemoryPool

base/BlockMemoryPool.cpp:11–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9}
10
11CBlockMemoryPool::~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
19void* CBlockMemoryPool::PoolLargeMalloc() {
20 std::unique_lock<std::mutex> lock(_large_mutex);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected