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

Method abortPreview_blocking

Engine/Node.cpp:1332–1350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1330}
1331
1332void
1333Node::Implementation::abortPreview_blocking(bool allowPreviewRenders)
1334{
1335 bool computing;
1336 {
1337 QMutexLocker locker(&computingPreviewMutex);
1338 computing = computingPreview;
1339 previewThreadQuit = !allowPreviewRenders;
1340 }
1341
1342 if (computing) {
1343 QMutexLocker l(&mustQuitPreviewMutex);
1344 assert(!mustQuitPreview);
1345 ++mustQuitPreview;
1346 while (mustQuitPreview) {
1347 mustQuitPreviewCond.wait(l.mutex());
1348 }
1349 }
1350}
1351
1352bool
1353Node::Implementation::checkForExitPreview()

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected