From 36eb0e945fced37b0505cd595d8c4baa6c2b0332 Mon Sep 17 00:00:00 2001 From: Remo E Date: Fri, 28 Apr 2017 16:51:34 +0200 Subject: [PATCH] Avoid call of SetupThreads in DatabasePager This solves a bug with some shared library configurations. Sometimes the DatabasePager Singleton is initialised before one can call other configuration options like "setNumOfDatabaseThreadsHint". But OSG initialise it here: https://github.com/openscenegraph/OpenSceneGraph/blob/master/src/osgDB/DatabasePager.cpp#L1555 So this call is not needed?! --- src/osgDB/DatabasePager.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/osgDB/DatabasePager.cpp b/src/osgDB/DatabasePager.cpp index 852b14491..5bd80970f 100644 --- a/src/osgDB/DatabasePager.cpp +++ b/src/osgDB/DatabasePager.cpp @@ -1110,10 +1110,6 @@ DatabasePager::DatabasePager() // test of setting the database threads affinity. // _affinity = OpenThreads::Affinity(4,4); - setUpThreads( - osg::DisplaySettings::instance()->getNumOfDatabaseThreadsHint(), - osg::DisplaySettings::instance()->getNumOfHttpDatabaseThreadsHint()); - str = getenv("OSG_DATABASE_PAGER_PRIORITY"); if (str) {