| 139 | } |
| 140 | |
| 141 | uint16_t DebuggerService::getBoundPort() { |
| 142 | uint16_t boundPort = 0; |
| 143 | _dispatchQueue->sync([&]() { |
| 144 | if (_tcpServer != nullptr) { |
| 145 | boundPort = _tcpServer->getBoundPort(); |
| 146 | } |
| 147 | }); |
| 148 | |
| 149 | return boundPort; |
| 150 | } |
| 151 | |
| 152 | void DebuggerService::addListener(IDebuggerServiceListener* listener) { |
| 153 | std::lock_guard<Mutex> guard(_mutex); |