for (int i=0; i<number_of_threads; i++)
{
//ThreadedImageReader* t = new ThreadedImageReader(this);
- boost::shared_ptr<ThreadedImageReader> t(new ThreadedImageReader(this));//, ThreadedImageReader::deleter());
+ boost::shared_ptr<ThreadedImageReader> t(new ThreadedImageReader(this), ThreadedImageReader::deleter());
mThreadedImageReaderList.push_back(t);
std::cout << " ===> Thread "<<i
<<" successfully added"<< std::endl;
{ std::cout << " ===> Thread "<<(*i)->GetCurrentId()
<<" successfully stopped"<< std::endl;
if((*i)->IsAlive())
- {
+ {(*i)->Pause();
(*i).reset();
- //(*i)->Delete();
+ // (*i)->Delete();
}
}
mThreadedImageReaderList.clear();