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

Method quitAnyProcessing_non_blocking

Engine/Node.cpp:1397–1422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1395}
1396
1397void
1398Node::quitAnyProcessing_non_blocking()
1399{
1400 //If this effect has a RenderEngine, make sure it is finished
1401 OutputEffectInstance* isOutput = dynamic_cast<OutputEffectInstance*>( _imp->effect.get() );
1402
1403 if (isOutput) {
1404 isOutput->getRenderEngine()->quitEngine(true);
1405 }
1406
1407 //Returns when the preview is done computign
1408 _imp->abortPreview_non_blocking();
1409
1410 TrackerContextPtr trackerContext = getTrackerContext();
1411 if (trackerContext) {
1412 trackerContext->quitTrackerThread_non_blocking();
1413 }
1414
1415 if ( isRotoPaintingNode() ) {
1416 NodesList rotopaintNodes;
1417 getRotoContext()->getRotoPaintTreeNodes(&rotopaintNodes);
1418 for (NodesList::iterator it = rotopaintNodes.begin(); it != rotopaintNodes.end(); ++it) {
1419 (*it)->quitAnyProcessing_non_blocking();
1420 }
1421 }
1422}
1423
1424void
1425Node::quitAnyProcessing_blocking(bool allowThreadsToRestart)

Callers 1

Calls 7

quitEngineMethod · 0.80
getRotoPaintTreeNodesMethod · 0.80
getMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected