MCPcopy Create free account
hub / github.com/Kitware/CMake / response

Method response

Utilities/cmcppdap/src/session.cpp:191–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

processResponseMethod · 0.80

Calls 4

moveFunction · 0.85
eraseMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected