QT QThread :Destroyed while thread is still running
void ReadThread::run()
{
while(! thread_ctrl)
{
}
}
void ReadThread::~ReadThread()
{
thread_ctrl = 1;
this->terminate();
this->wait();
this->deleteLater();
}
QT QThread :Destroyed while thread is still running
void ReadThread::run()
{
while(! thread_ctrl)
{
}
}
void ReadThread::~ReadThread()
{
thread_ctrl = 1;
this->terminate();
this->wait();
this->deleteLater();
}