| 103 | } |
| 104 | |
| 105 | int ProcessorClient::getWorkerPort() { |
| 106 | std::lock_guard<std::mutex> lock(m_workerPortsMtx); |
| 107 | int port = Defaults::SANDBOX_PLUGIN_PORT; |
| 108 | while (m_workerPorts.count(port) > 0) { |
| 109 | port++; |
| 110 | } |
| 111 | m_workerPorts.insert(port); |
| 112 | return port; |
| 113 | } |
| 114 | |
| 115 | void ProcessorClient::removeWorkerPort(int port) { |
| 116 | std::lock_guard<std::mutex> lock(m_workerPortsMtx); |
nothing calls this directly
no outgoing calls
no test coverage detected