MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / start

Method start

OpenHD/ohd_telemetry/src/endpoints/SerialEndpoint.cpp:316–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316void SerialEndpoint::start() {
317 std::lock_guard<std::mutex> lock(m_connect_receive_thread_mutex);
318 m_console->debug("start()-begin");
319 if (m_connect_receive_thread != nullptr) {
320 m_console->debug("Already started");
321 return;
322 }
323 _stop_requested = false;
324 m_connect_receive_thread = std::make_unique<std::thread>(
325 &SerialEndpoint::connect_and_read_loop, this);
326 m_console->debug("start()-end");
327}
328
329void SerialEndpoint::stop() {
330 std::lock_guard<std::mutex> lock(m_connect_receive_thread_mutex);

Callers

nothing calls this directly

Calls 1

debugMethod · 0.80

Tested by

no test coverage detected