void PluginIOMP done soap_worker- shutdown The thread object lives in

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
void
PluginIOMP::done()
{
soap_worker->shutdown();
// The thread object lives in the main thread and soap_thread->wait() never ends
// since the thread's finished() signal is enqued but never processed.
// So we need to do this instead:
while (soap_thread->isRunning())
{
// This ensures that the finished() signal
// will be processed by the thread object
QCoreApplication::processEvents();
}
}