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

Method quitAnyProcessing_non_blocking

Engine/Node.cpp:2604–2629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2602}
2603
2604void
2605Node::quitAnyProcessing_non_blocking()
2606{
2607 //If this effect has a RenderEngine, make sure it is finished
2608 OutputEffectInstance* isOutput = dynamic_cast<OutputEffectInstance*>( _imp->effect.get() );
2609
2610 if (isOutput) {
2611 isOutput->getRenderEngine()->quitEngine(true);
2612 }
2613
2614 //Returns when the preview is done computign
2615 _imp->abortPreview_non_blocking();
2616
2617 boost::shared_ptr<TrackerContext> trackerContext = getTrackerContext();
2618 if (trackerContext) {
2619 trackerContext->quitTrackerThread_non_blocking();
2620 }
2621
2622 if ( isRotoPaintingNode() ) {
2623 NodesList rotopaintNodes;
2624 getRotoContext()->getRotoPaintTreeNodes(&rotopaintNodes);
2625 for (NodesList::iterator it = rotopaintNodes.begin(); it != rotopaintNodes.end(); ++it) {
2626 (*it)->quitAnyProcessing_non_blocking();
2627 }
2628 }
2629}
2630
2631void
2632Node::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