Moved testCancel() to end of loop as per TXP pager code.
This commit is contained in:
@@ -195,12 +195,9 @@ void DatabasePager::run()
|
||||
// by keeping deleted texture objects around for 10 seconds after being deleted.
|
||||
osg::Texture::getTextureObjectManager()->setExpiryDelay(10.0f);
|
||||
|
||||
while(true)
|
||||
do
|
||||
{
|
||||
|
||||
// test to see if we need to exit.
|
||||
testCancel();
|
||||
|
||||
//
|
||||
// delete any children if required.
|
||||
//
|
||||
@@ -296,7 +293,7 @@ void DatabasePager::run()
|
||||
// go to sleep till our the next time our thread gets scheduled.
|
||||
YieldCurrentThread();
|
||||
|
||||
}
|
||||
} while (!testCancel());
|
||||
|
||||
cancel();
|
||||
join();
|
||||
|
||||
Reference in New Issue
Block a user