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

Method event

libs/cppdap/src/session.cpp:204–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202 }
203
204 std::pair<const dap::TypeInfo*, GenericEventHandler> event(
205 const std::string& name) {
206 std::unique_lock<std::mutex> lock(eventMutex);
207 auto it = eventMap.find(name);
208 return (it != eventMap.end()) ? it->second : decltype(it->second){};
209 }
210
211 void put(const dap::TypeInfo* typeinfo,
212 const GenericEventHandler& handler) {

Callers 1

processEventMethod · 0.45

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected