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

Method reset

Engine/Project.cpp:1978–2003  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1976typedef std::shared_ptr<ResetWatcherArgs> ResetWatcherArgsPtr;
1977
1978void
1979Project::reset(bool aboutToQuit, bool blocking)
1980{
1981 assert( QThread::currentThread() == qApp->thread() );
1982 {
1983 QMutexLocker k(&_imp->projectClosingMutex);
1984 _imp->projectClosing = true;
1985 }
1986
1987 if (!blocking) {
1988 ResetWatcherArgsPtr args = std::make_shared<ResetWatcherArgs>();
1989 args->aboutToQuit = aboutToQuit;
1990 if ( !quitAnyProcessingForAllNodes(this, args) ) {
1991 doResetEnd(aboutToQuit);
1992 }
1993 } else {
1994 {
1995 NodesList nodesToWatch;
1996 getNodes_recursive(nodesToWatch, false);
1997 for (NodesList::const_iterator it = nodesToWatch.begin(); it != nodesToWatch.end(); ++it) {
1998 (*it)->quitAnyProcessing_blocking(false);
1999 }
2000 }
2001 doResetEnd(aboutToQuit);
2002 }
2003} // Project::reset
2004
2005void
2006Project::closeProject_blocking(bool aboutToQuit)

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected