| 96 | } |
| 97 | |
| 98 | void StringCache::removeString(const InternedStringImpl* internedString) { |
| 99 | std::lock_guard<Mutex> guard(_mutex); |
| 100 | |
| 101 | const auto& it = _table.find(internedString, makePHMapHash(internedString->getHash())); |
| 102 | if (it != _table.end()) { |
| 103 | _table.erase(it); |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | std::unique_lock<Mutex> StringCache::lock() { |
| 108 | return std::unique_lock<Mutex>(_mutex); |
no test coverage detected