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?!
This commit is contained in:
Remo E 2017-04-28 16:51:34 +02:00 committed by GitHub
parent 3dc3dd3bd6
commit 36eb0e945f

View File

@ -1110,10 +1110,6 @@ DatabasePager::DatabasePager()
// test of setting the database threads affinity. // test of setting the database threads affinity.
// _affinity = OpenThreads::Affinity(4,4); // _affinity = OpenThreads::Affinity(4,4);
setUpThreads(
osg::DisplaySettings::instance()->getNumOfDatabaseThreadsHint(),
osg::DisplaySettings::instance()->getNumOfHttpDatabaseThreadsHint());
str = getenv("OSG_DATABASE_PAGER_PRIORITY"); str = getenv("OSG_DATABASE_PAGER_PRIORITY");
if (str) if (str)
{ {