MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / getAbortInfo

Method getAbortInfo

Engine/ThreadPool.cpp:160–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160bool
161AbortableThread::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

Callers 3

abortedMethod · 0.80
copyAbortInfoFunction · 0.80
onAbortRequestedMethod · 0.80

Calls 1

lockMethod · 0.45

Tested by

no test coverage detected