Return true if a handle has been initialized for a specific tag. In contrast to GetHandle(), this allows testing for existence without modifying the tag/handle map.
| 69 | // In contrast to GetHandle(), this allows testing for existence without |
| 70 | // modifying the tag/handle map. |
| 71 | bool Statistics::HasHandle(std::string const& tag) { |
| 72 | std::lock_guard<std::mutex> lock(Instance().mutex_); |
| 73 | bool tag_found = Instance().tag_map_.count(tag); |
| 74 | return tag_found; |
| 75 | } |
| 76 | |
| 77 | std::string Statistics::GetTag(size_t handle) { |
| 78 | std::lock_guard<std::mutex> lock(Instance().mutex_); |
nothing calls this directly
no outgoing calls
no test coverage detected