| 1976 | typedef std::shared_ptr<ResetWatcherArgs> ResetWatcherArgsPtr; |
| 1977 | |
| 1978 | void |
| 1979 | Project::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 | |
| 2005 | void |
| 2006 | Project::closeProject_blocking(bool aboutToQuit) |
nothing calls this directly
no test coverage detected