| 238 | } |
| 239 | |
| 240 | void |
| 241 | GenericSchedulerThread::waitForThreadToQuitQueued_main_thread(bool allowRestart) |
| 242 | { |
| 243 | assert( QThread::currentThread() == qApp->thread() ); |
| 244 | _imp->blockingOperationWatcher.reset( new GenericSchedulerThreadWatcher(this) ); |
| 245 | QObject::connect( _imp->blockingOperationWatcher.get(), SIGNAL(taskFinished(int,WatcherCallerArgsPtr)), this, SLOT(onWatcherTaskFinishedEmitted()) ); |
| 246 | GenericSchedulerThreadWatcher::BlockingTaskEnum task = allowRestart ? GenericSchedulerThreadWatcher::eBlockingTaskWaitForQuitAllowRestart : GenericSchedulerThreadWatcher::eBlockingTaskWaitForQuitDisallowRestart; |
| 247 | _imp->blockingOperationWatcher->scheduleBlockingTask(task); |
| 248 | } |
| 249 | |
| 250 | bool |
| 251 | GenericSchedulerThread::waitForThreadToQuit_enforce_blocking() |
nothing calls this directly
no test coverage detected