MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / arm

Method arm

app/src/DataModel/Scripting/JsWatchdog.cpp:76–80  ·  view source on GitHub ↗

* @brief Clears any prior interrupt and publishes a fresh deadline; lock-free on the hotpath. */

Source from the content-addressed store, hash-verified

74 * @brief Clears any prior interrupt and publishes a fresh deadline; lock-free on the hotpath.
75 */
76void DataModel::JsWatchdog::arm() noexcept
77{
78 m_engine->setInterrupted(false);
79 m_deadlineNs.store(steadyNowNs() + qint64(m_budgetMs) * 1000000, std::memory_order_release);
80}
81
82/**
83 * @brief Retires the deadline so the watchdog thread stops watching this engine.

Callers 11

dryRunMethod · 0.45
armPlotSweepMethod · 0.45
armMultiplotSweepMethod · 0.45
compileMethod · 0.45
beginDatasetPassMethod · 0.45
validateScriptSyntaxMethod · 0.45
runOnConnectMethod · 0.45
callMethod · 0.45
writeAndWaitMethod · 0.45
delayMethod · 0.45
compileMethod · 0.45

Calls 1

steadyNowNsFunction · 0.70

Tested by

no test coverage detected