Added mutex to access to the Registry::_objectCache.

This commit is contained in:
Robert Osfield
2004-09-06 18:20:38 +00:00
parent 4571238459
commit 9dc35ce47a
2 changed files with 91 additions and 48 deletions

View File

@@ -428,11 +428,12 @@ class OSGDB_EXPORT Registry : public osg::Referenced
// options to pass to reader writers.
osg::ref_ptr<ReaderWriter::Options> _options;
FilePathList _dataFilePath;
FilePathList _libraryFilePath;
FilePathList _dataFilePath;
FilePathList _libraryFilePath;
CacheHintOptions _useObjectCacheHint;
ObjectCache _objectCache;
CacheHintOptions _useObjectCacheHint;
ObjectCache _objectCache;
OpenThreads::Mutex _objectCacheMutex;
osg::ref_ptr<DatabasePager> _databasePager;
osg::ref_ptr<SharedStateManager> _sharedStateManager;