private:
ImageReader mReader;
MultiThreadImageReader* mMultiThreadImageReader;
+
};
//=====================================================================
: //mDoNotSignal(false),
mReader(0),
mTotalMem(0),
- mTotalMemMax(100000)
+ mTotalMemMax(1500000)
{
// std::cout << "#### MultiThreadImageReader::MultiThreadImageReader("
// << " #threads= " << number_of_threads <<" )"<<std::endl;
i!=mThreadedImageReaderList.end();
i++)
{
- (*i)->Delete();
+ if((*i)->IsAlive())
+ {
+ (*i)->Delete();
+ }
}
mThreadedImageReaderList.clear();
// Wait a little to be sure that all threads have stopped