MCPcopy Create free account
hub / github.com/dfranx/SHADERed / response

Method response

libs/cppdap/src/session.cpp:179–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177 }
178
179 std::pair<const dap::TypeInfo*, GenericResponseHandler> response(
180 int64_t seq) {
181 std::unique_lock<std::mutex> lock(responseMutex);
182 auto responseIt = responseMap.find(seq);
183 if (responseIt == responseMap.end()) {
184 errorfLocked("Unknown response with sequence %d", seq);
185 return {};
186 }
187 auto out = std::move(responseIt->second);
188 responseMap.erase(seq);
189 return out;
190 }
191
192 void put(int seq,
193 const dap::TypeInfo* typeinfo,

Callers 1

processResponseMethod · 0.80

Calls 3

findMethod · 0.80
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected