MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / isInUse

Method isInUse

python/mod_cvcuda/nvcv/Cache.cpp:76–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76bool 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
84using Items = std::unordered_multimap<const IKey *, std::shared_ptr<CacheItem>, HashKey, KeyEqual>;
85

Callers 3

fetchMethod · 0.80
fetchOneMethod · 0.80

Calls 1

shared_from_thisMethod · 0.95

Tested by

no test coverage detected