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

Method ~CNetMgr

adapter/micro_thread/mt_net.cpp:1712–1742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1710}
1711
1712CNetMgr::~CNetMgr()
1713{
1714 if (_ip_hash != NULL)
1715 {
1716 HashKey* hash_item = _ip_hash->HashGetFirst();
1717 while (hash_item)
1718 {
1719 delete hash_item;
1720 hash_item = _ip_hash->HashGetFirst();
1721 }
1722
1723 delete _ip_hash;
1724 _ip_hash = NULL;
1725 }
1726
1727 if (_session_hash != NULL)
1728 {
1729 HashKey* hash_item = _session_hash->HashGetFirst();
1730 while (hash_item)
1731 {
1732 delete hash_item;
1733 hash_item = _session_hash->HashGetFirst();
1734 }
1735
1736 delete _session_hash;
1737 _session_hash = NULL;
1738 }
1739
1740 sk_buffer_mng_destroy(&_tcp_pool);
1741 sk_buffer_mng_destroy(&_udp_pool);
1742}
1743
1744void CNetMgr::RecycleObjs(uint64_t now)
1745{

Callers

nothing calls this directly

Calls 2

sk_buffer_mng_destroyFunction · 0.85
HashGetFirstMethod · 0.80

Tested by

no test coverage detected