| 120 | } |
| 121 | |
| 122 | uint32_t |
| 123 | getCount(swoc::IPAddr const &ip) |
| 124 | { |
| 125 | std::shared_lock lock(_mutex); |
| 126 | auto item = _table.find(ip); |
| 127 | if (item == _table.end()) { |
| 128 | return 0; |
| 129 | } else { |
| 130 | uint32_t tmp_count = item->second._count; |
| 131 | return tmp_count; |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | void |
| 136 | clean() |
no test coverage detected