| 88 | // ============ Backend Thread Implementation ============ |
| 89 | |
| 90 | void Estimator::StartBackendThread() { |
| 91 | if (m_backend_running.load()) { |
| 92 | LOG_WARN("Backend thread is already running"); |
| 93 | return; |
| 94 | } |
| 95 | |
| 96 | m_backend_stop_requested.store(false); |
| 97 | m_backend_running.store(true); |
| 98 | m_backend_thread = std::thread(&Estimator::BackendLoop, this); |
| 99 | LOG_INFO("Backend thread started"); |
| 100 | } |
| 101 | |
| 102 | void Estimator::StopBackendThread() { |
| 103 | if (!m_backend_running.load()) { |
nothing calls this directly
no outgoing calls
no test coverage detected