MyThread thread;..thread.wait();
MyThread::run( void ){ .. mutex.lock(); ... mutex.unlock();}
QMutex pausemutex; pausemutex.lock(); paused_condition->wait( &pausemutex ); pausemutex.unlock();
paused_condition->wakeAll();