diff --git a/src/osgDB/DatabasePager.cpp b/src/osgDB/DatabasePager.cpp index 2f4eb7c94..4b1067fe8 100644 --- a/src/osgDB/DatabasePager.cpp +++ b/src/osgDB/DatabasePager.cpp @@ -5,6 +5,8 @@ #include #include +#include + #ifdef WIN32 #include #else @@ -111,12 +113,22 @@ void DatabasePager::requestNodeFile(const std::string& fileName,osg::Group* grou _fileRequestListMutex.unlock(); } - //if (!threadIsRunning()) if (!isRunning()) { - osg::notify(osg::DEBUG_INFO)<<"DatabasePager::startThread()"< lock(s_mutex); + + static bool s_startThreadCalled = false; + + if (!s_startThreadCalled) + { + s_startThreadCalled = true; + osg::notify(osg::DEBUG_INFO)<<"DatabasePager::startThread()"<