diff --git a/src/TaggedCache.h b/src/TaggedCache.h index a6c56efa42..fe7e03d242 100644 --- a/src/TaggedCache.h +++ b/src/TaggedCache.h @@ -44,6 +44,7 @@ public: int getTargetAge() const; int getCacheSize(); + int getTrackSize(); int getSweepAge(); void setTargetSize(int size); @@ -78,6 +79,12 @@ template int TaggedCache::getCac return mCache.size(); } +template int TaggedCache::getTrackSize() +{ + boost::recursive_mutex::scoped_lock sl(mLock); + return mMap.size(); +} + template void TaggedCache::sweep() { boost::recursive_mutex::scoped_lock sl(mLock);