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

Method ~CMemoryPool

base/MemoryPool.cpp:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16CMemoryPool::~CMemoryPool() {
17 //assert(_create_thread_id == std::this_thread::get_id());
18 for (auto iter = _malloc_vec.begin(); iter != _malloc_vec.end(); ++iter) {
19 if (*iter) {
20 free(*iter);
21 }
22 }
23}
24
25std::thread::id CMemoryPool::GetCreateThreadId() {
26 return _create_thread_id;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected