MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / RunProcess

Method RunProcess

plugins/base/macro-condition-run.cpp:58–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void MacroConditionRun::RunProcess()
59{
60 auto result = _procConfig.StartProcessAndWait(_timeout.Milliseconds());
61
62 if (std::holds_alternative<ProcessConfig::ProcStartError>(result)) {
63 _error = std::get<ProcessConfig::ProcStartError>(result);
64 } else {
65 _error = ProcessConfig::ProcStartError::NONE;
66 _procExitCode = std::get<int>(result);
67 }
68
69 _threadDone = true;
70 SetTempVarValues();
71}
72
73void MacroConditionRun::SetupTempVars()
74{

Callers

nothing calls this directly

Calls 2

StartProcessAndWaitMethod · 0.80
MillisecondsMethod · 0.80

Tested by

no test coverage detected