| 74 | } |
| 75 | |
| 76 | bool CacheItem::isInUse() const |
| 77 | { |
| 78 | std::shared_ptr<const CacheItem> sthis = this->shared_from_this(); |
| 79 | |
| 80 | // Return true if it is being used anywhere apart from cache and sthis |
| 81 | return sthis.use_count() > 2; |
| 82 | } |
| 83 | |
| 84 | using Items = std::unordered_multimap<const IKey *, std::shared_ptr<CacheItem>, HashKey, KeyEqual>; |
| 85 |
no test coverage detected