Moved static initializers into global scope to prevent problems with using exit().

This commit is contained in:
Robert Osfield
2012-03-12 14:22:48 +00:00
parent df82754203
commit 7977b31577

View File

@@ -18,15 +18,15 @@ using namespace osgViewer;
typedef std::vector< osg::observer_ptr<Scene> > SceneCache;
static SceneCache s_sceneCache;
static SceneCache& getSceneCache()
{
static SceneCache s_sceneCache;
return s_sceneCache;
}
static OpenThreads::Mutex s_sceneCacheMutex;
static OpenThreads::Mutex& getSceneCacheMutex()
{
static OpenThreads::Mutex s_sceneCacheMutex;
return s_sceneCacheMutex;
}