Added release of file request block in the DatabasePager destructor.
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user