14 #ifndef OSGDB_OBJECTCACHE
15 #define OSGDB_OBJECTCACHE 1
19 #include <osgDB/ReaderWriter>
20 #include <osgDB/DatabaseRevisions>
38 void updateTimeStampOfObjectsInCacheWithExternalReferences(
double referenceTime);
44 void removeExpiredObjectsInCache(
double expiryTime);
53 void addEntryToObjectCache(
const std::string& filename,
osg::Object*
object,
double timestamp = 0.0);
56 void removeFromObjectCache(
const std::string& fileName);
59 osg::Object* getFromObjectCache(
const std::string& fileName);
This class provides an object-oriented thread mutex interface.
OpenThreads::Mutex _objectCacheMutex
std::map< std::string, ObjectTimeStampPair > ObjectCacheMap
ObjectCacheMap _objectCache
std::pair< osg::ref_ptr< osg::Object >, double > ObjectTimeStampPair