From Dietmar Funck, "in order to use a customized database thread it's necessary to use a customized database pager, which creates such customized database threads, too.
I think the best way to achieve this is to overwrite the DatabasePager::addDatabaseThread() method within the customized database pager. However this method is not 'virtual' yet, so I propose to make the method 'virtual'."
This commit is contained in:
parent
acb48db89e
commit
5ac0181cdc
@ -128,7 +128,7 @@ class OSGDB_EXPORT DatabasePager : public osg::NodeVisitor::DatabaseRequestHandl
|
||||
|
||||
void setUpThreads(unsigned int totalNumThreads=2, unsigned int numHttpThreads=1);
|
||||
|
||||
unsigned int addDatabaseThread(DatabaseThread::Mode mode, const std::string& name);
|
||||
virtual unsigned int addDatabaseThread(DatabaseThread::Mode mode, const std::string& name);
|
||||
|
||||
DatabaseThread* getDatabaseThread(unsigned int i) { return _databaseThreads[i].get(); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user