| 55 | } |
| 56 | |
| 57 | MsgBuffPool::~MsgBuffPool() |
| 58 | { |
| 59 | if (!_hash_map) { |
| 60 | return; |
| 61 | } |
| 62 | |
| 63 | MsgBufMap* msg_map = NULL; |
| 64 | HashKey* hash_item = _hash_map->HashGetFirst(); |
| 65 | while (hash_item) |
| 66 | { |
| 67 | _hash_map->HashRemove(hash_item); |
| 68 | msg_map = dynamic_cast<MsgBufMap*>(hash_item); |
| 69 | delete msg_map; |
| 70 | |
| 71 | hash_item = _hash_map->HashGetFirst(); |
| 72 | } |
| 73 | |
| 74 | delete _hash_map; |
| 75 | _hash_map = NULL; |
| 76 | } |
| 77 | |
| 78 | MtMsgBuf* MsgBuffPool::GetMsgBuf(int max_size) |
| 79 | { |
nothing calls this directly
no test coverage detected