|
|
@ -15,8 +15,6 @@ namespace Resource
|
|
|
|
|
|
|
|
|
|
|
|
void ResourceManager::updateCache(double referenceTime)
|
|
|
|
void ResourceManager::updateCache(double referenceTime)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// NOTE: we could clear the cache from the background thread if the deletion proves too much of an overhead
|
|
|
|
|
|
|
|
// idea: customize objectCache to not hold a lock while doing the actual deletion
|
|
|
|
|
|
|
|
mCache->updateTimeStampOfObjectsInCacheWithExternalReferences(referenceTime);
|
|
|
|
mCache->updateTimeStampOfObjectsInCacheWithExternalReferences(referenceTime);
|
|
|
|
mCache->removeExpiredObjectsInCache(referenceTime - mExpiryDelay);
|
|
|
|
mCache->removeExpiredObjectsInCache(referenceTime - mExpiryDelay);
|
|
|
|
}
|
|
|
|
}
|
|
|
|