| 158 | } |
| 159 | |
| 160 | bool |
| 161 | AbortableThread::getAbortInfo(bool* isRenderResponseToUserInteraction, |
| 162 | AbortableRenderInfoPtr* abortInfo, |
| 163 | EffectInstancePtr* treeRoot) const |
| 164 | { |
| 165 | QMutexLocker k(&_imp->abortInfoMutex); |
| 166 | |
| 167 | if (!_imp->abortInfoValid) { |
| 168 | return false; |
| 169 | } |
| 170 | *isRenderResponseToUserInteraction = _imp->isRenderResponseToUserInteraction; |
| 171 | *abortInfo = _imp->abortInfo.lock(); |
| 172 | *treeRoot = _imp->treeRoot.lock(); |
| 173 | |
| 174 | return true; |
| 175 | } |
| 176 | |
| 177 | // We patched Qt to be able to derive QThreadPool to control the threads that are spawned to improve performances |
| 178 | // of the EffectInstance::aborted() function |
no test coverage detected