From 3223a879354a388763a6edf7e9a77842bd267649 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 13 Mar 2004 16:29:29 +0000 Subject: [PATCH] Moved the destructor block->release to after the cancel(). --- src/osgDB/DatabasePager.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/osgDB/DatabasePager.cpp b/src/osgDB/DatabasePager.cpp index 072c14e6b..11fd94773 100644 --- a/src/osgDB/DatabasePager.cpp +++ b/src/osgDB/DatabasePager.cpp @@ -45,9 +45,6 @@ DatabasePager::DatabasePager() DatabasePager::~DatabasePager() { - // release the frameBlock and _fileRequestListEmptyBlock incase its holding up thread cancelation. - _frameBlock->release(); - _fileRequestListEmptyBlock->release(); //std::cout<<"DatabasePager::~DatabasePager()"<release(); + _fileRequestListEmptyBlock->release(); + // then wait for the the thread to stop running. while(isRunning()) {