| 117 | } |
| 118 | |
| 119 | int 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected