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

Method async_initialize

OpenHD/ohd_interface/src/ethernet_manager.cpp:144–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void EthernetManager::async_initialize(int operating_mode) {
145 auto runnable = [this, operating_mode]() { loop(operating_mode); };
146 m_terminate = false;
147 m_thread = std::make_shared<std::thread>(runnable);
148}
149
150void EthernetManager::loop(int operating_mode) {
151 if (operating_mode == ETHERNET_OPERATING_MODE_UNTOUCHED) {

Callers 2

mainFunction · 0.80
OHDInterfaceMethod · 0.80

Calls

no outgoing calls

Tested by 1

mainFunction · 0.64