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:
parent
3dc3dd3bd6
commit
36eb0e945f
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user