* @brief Clears any prior interrupt and publishes a fresh deadline; lock-free on the hotpath. */
| 74 | * @brief Clears any prior interrupt and publishes a fresh deadline; lock-free on the hotpath. |
| 75 | */ |
| 76 | void 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. |
no test coverage detected