MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / isOpen

Method isOpen

3rdparty/cppdap/src/socket.cpp:159–169  ·  view source on GitHub ↗

dap::ReaderWriter compliance

Source from the content-addressed store, hash-verified

157
158 // dap::ReaderWriter compliance
159 bool isOpen() {
160 {
161 RLock l(mutex);
162 if ((s != InvalidSocket) && !errored(s)) {
163 return true;
164 }
165 }
166 WLock lock(mutex);
167 s = InvalidSocket;
168 return false;
169 }
170
171 bool isConnected() {
172 RLock l(mutex);

Callers

nothing calls this directly

Calls 1

erroredFunction · 0.85

Tested by

no test coverage detected