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

Method postCompile

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

Source from the content-addressed store, hash-verified

1801{}
1802
1803void DspNetwork::CodeManager::SnexSourceCompileHandler::postCompile(ui::WorkbenchData::CompileResult& lastResult)
1804{
1805 auto currentThread = Thread::getCurrentThread();
1806
1807 if (currentThread != this)
1808 {
1809 runTestNext.store(true);
1810 startThread();
1811 return;
1812 }
1813
1814 if (lastResult.compiledOk() && test != nullptr && getParent()->getGlobalScope().isDebugModeEnabled())
1815 {
1816 getParent()->getGlobalScope().getBreakpointHandler().setExecutingThread(currentThread);
1817 lastResult.compileResult = test->runTest(lastResult);
1818 getParent()->getGlobalScope().getBreakpointHandler().setExecutingThread(nullptr);
1819 }
1820
1821 runTestNext.store(false);
1822}
1823
1824SimpleReadWriteLock& DspNetwork::CodeManager::SnexSourceCompileHandler::getCompileLock()
1825{ return compileLock; }

Callers

nothing calls this directly

Calls 6

getGlobalScopeMethod · 0.80
setExecutingThreadMethod · 0.80
storeMethod · 0.45
compiledOkMethod · 0.45
isDebugModeEnabledMethod · 0.45
runTestMethod · 0.45

Tested by

no test coverage detected