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

Method checkoutFreeChannel

OpenHD/ohd_telemetry/src/endpoints/MEndpoint.cpp:119–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119int MEndpoint::checkoutFreeChannel() {
120 static std::mutex _channels_used_mutex;
121 static int channel_idx = 0;
122 std::lock_guard<std::mutex> lock(_channels_used_mutex);
123 int ret = channel_idx;
124 channel_idx++;
125 return ret;
126}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected