From 5ac0181cdc4f2337594822fc801965c6b40775cf Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 20 Feb 2012 12:33:17 +0000 Subject: [PATCH] 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'." --- include/osgDB/DatabasePager | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osgDB/DatabasePager b/include/osgDB/DatabasePager index faf874395..6fa19a80e 100644 --- a/include/osgDB/DatabasePager +++ b/include/osgDB/DatabasePager @@ -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(); }