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

Method runInBackground

OpenHD/ohd_common/src/openhd_udp.cpp:185–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185void openhd::UDPReceiver::runInBackground() {
186 if (receiverThread) {
187 get_console()->warn(
188 "Receiver thread is already running or has not been properly stopped");
189 return;
190 }
191 receiving = true;
192 receiverThread =
193 std::make_unique<std::thread>(&UDPReceiver::loopUntilError, this);
194}
195
196void openhd::UDPReceiver::stopBackground() {
197 stopLooping();

Callers 4

MicrohardLinkMethod · 0.80
initialize_air_unitMethod · 0.80
UDPEndpointMethod · 0.80

Calls 1

get_consoleFunction · 0.70

Tested by

no test coverage detected