MCPcopy Create free account
hub / github.com/christophhart/HISE / triggerCompilation

Method triggerCompilation

hi_scripting/scripting/scriptnode/api/DspNetwork.cpp:1994–2012  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1992}
1993
1994bool DspNetwork::CodeManager::SnexSourceCompileHandler::triggerCompilation()
1995{
1996 getParent()->getGlobalScope().getBreakpointHandler().abort();
1997
1998 if (isThreadRunning())
1999 stopThread(3000);
2000
2001 auto currentThread = getMainController()->getKillStateHandler().getCurrentThread();
2002
2003 if (currentThread == MainController::KillStateHandler::TargetThread::SampleLoadingThread ||
2004 currentThread == MainController::KillStateHandler::TargetThread::ScriptingThread)
2005 {
2006 getParent()->handleCompilation();
2007 return true;
2008 }
2009
2010 startThread();
2011 return false;
2012}
2013#endif
2014
2015DeprecationChecker::DeprecationChecker(DspNetwork* n_, ValueTree v_) :

Callers

nothing calls this directly

Calls 4

getGlobalScopeMethod · 0.80
handleCompilationMethod · 0.80
abortMethod · 0.45
getCurrentThreadMethod · 0.45

Tested by

no test coverage detected