| 141 | } |
| 142 | |
| 143 | void |
| 144 | AbortableThread::clearAbortInfo() |
| 145 | { |
| 146 | AbortableRenderInfoPtr abortInfo; |
| 147 | { |
| 148 | QMutexLocker k(&_imp->abortInfoMutex); |
| 149 | abortInfo = _imp->abortInfo.lock(); |
| 150 | _imp->abortInfo.reset(); |
| 151 | _imp->treeRoot.reset(); |
| 152 | _imp->abortInfoValid = false; |
| 153 | } |
| 154 | |
| 155 | if (abortInfo) { |
| 156 | abortInfo->unregisterThreadForRender(this); |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | bool |
| 161 | AbortableThread::getAbortInfo(bool* isRenderResponseToUserInteraction, |
no test coverage detected