Added release of file request block in the DatabasePager destructor.

This commit is contained in:
Robert Osfield
2004-01-24 09:41:29 +00:00
parent e247b11861
commit e17df6a8a5

View File

@@ -41,6 +41,10 @@ DatabasePager::DatabasePager()
DatabasePager::~DatabasePager()
{
// release the frameBlock and _fileRequestListEmptyBlock incase its holding up thread cancelation.
_frameBlock->release();
_fileRequestListEmptyBlock->release();
//std::cout<<"DatabasePager::~DatabasePager()"<<std::endl;
if( isRunning() )
{
@@ -49,11 +53,6 @@ DatabasePager::~DatabasePager()
cancel();
//join();
// release the frameBlock incase its holding up thread cancelation.
_frameBlock->release();
// then wait for the the thread to stop running.
while(isRunning())
{