Moved testCancel() to end of loop as per TXP pager code.

This commit is contained in:
Robert Osfield
2003-09-04 19:45:55 +00:00
parent 11d1faeeb1
commit 604e478f52

View File

@@ -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();