| 3175 | } |
| 3176 | |
| 3177 | void |
| 3178 | RenderEngine::waitForEngineToQuit_main_thread(bool allowRestart) |
| 3179 | { |
| 3180 | assert( QThread::currentThread() == qApp->thread() ); |
| 3181 | assert(!_imp->engineWatcher); |
| 3182 | _imp->engineWatcher.reset( new RenderEngineWatcher(this) ); |
| 3183 | QObject::connect( _imp->engineWatcher.get(), SIGNAL(taskFinished(int,WatcherCallerArgsPtr)), this, SLOT(onWatcherEngineQuitEmitted()) ); |
| 3184 | _imp->engineWatcher->scheduleBlockingTask(allowRestart ? RenderEngineWatcher::eBlockingTaskWaitForQuitAllowRestart : RenderEngineWatcher::eBlockingTaskWaitForQuitDisallowRestart); |
| 3185 | } |
| 3186 | |
| 3187 | void |
| 3188 | RenderEngine::waitForEngineToQuit_enforce_blocking() |
nothing calls this directly
no test coverage detected