| 14 | } |
| 15 | |
| 16 | CMemoryPool::~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 | |
| 25 | std::thread::id CMemoryPool::GetCreateThreadId() { |
| 26 | return _create_thread_id; |
nothing calls this directly
no outgoing calls
no test coverage detected