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

Method response

3rdparty/cppdap/src/session.cpp:197–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195 }
196
197 std::pair<const dap::TypeInfo*, GenericResponseHandler> response(
198 int64_t seq) {
199 std::unique_lock<std::mutex> lock(responseMutex);
200 auto responseIt = responseMap.find(seq);
201 if (responseIt == responseMap.end()) {
202 errorfLocked("Unknown response with sequence %d", seq);
203 return {};
204 }
205 auto out = std::move(responseIt->second);
206 responseMap.erase(seq);
207 return out;
208 }
209
210 void put(int seq,
211 const dap::TypeInfo* typeinfo,

Callers 1

processResponseMethod · 0.80

Calls 3

eraseMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected