MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ~MsgBuffPool

Method ~MsgBuffPool

adapter/micro_thread/mt_mbuf_pool.cpp:57–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57MsgBuffPool::~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
78MtMsgBuf* MsgBuffPool::GetMsgBuf(int max_size)
79{

Callers

nothing calls this directly

Calls 2

HashGetFirstMethod · 0.80
HashRemoveMethod · 0.80

Tested by

no test coverage detected