| 169 | openhd::LEDManager::~LEDManager() { stop_loading_thread(); } |
| 170 | |
| 171 | void openhd::LEDManager::start_loading_thread() { |
| 172 | if (m_running) return; // already running |
| 173 | |
| 174 | m_running = true; |
| 175 | m_loading_thread = |
| 176 | std::make_unique<std::thread>(&LEDManager::loading_loop, this); |
| 177 | } |
| 178 | |
| 179 | void openhd::LEDManager::stop_loading_thread() { |
| 180 | if (m_running) { |
nothing calls this directly
no outgoing calls
no test coverage detected