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

Method reset

Engine/Project.cpp:1847–1872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1845};
1846
1847void
1848Project::reset(bool aboutToQuit, bool blocking)
1849{
1850 assert( QThread::currentThread() == qApp->thread() );
1851 {
1852 QMutexLocker k(&_imp->projectClosingMutex);
1853 _imp->projectClosing = true;
1854 }
1855
1856 if (!blocking) {
1857 boost::shared_ptr<ResetWatcherArgs> args( new ResetWatcherArgs() );
1858 args->aboutToQuit = aboutToQuit;
1859 if ( !quitAnyProcessingForAllNodes(this, args) ) {
1860 doResetEnd(aboutToQuit);
1861 }
1862 } else {
1863 {
1864 NodesList nodesToWatch;
1865 getNodes_recursive(nodesToWatch, false);
1866 for (NodesList::const_iterator it = nodesToWatch.begin(); it != nodesToWatch.end(); ++it) {
1867 (*it)->quitAnyProcessing_blocking(false);
1868 }
1869 }
1870 doResetEnd(aboutToQuit);
1871 }
1872} // Project::reset
1873
1874void
1875Project::closeProject_blocking(bool aboutToQuit)

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected