MCPcopy Create free account
hub / github.com/apohl79/audiogridder / getWorkerPort

Method getWorkerPort

Server/Source/ProcessorClient.cpp:105–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105int 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
115void ProcessorClient::removeWorkerPort(int port) {
116 std::lock_guard<std::mutex> lock(m_workerPortsMtx);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected