MCPcopy Create free account
hub / github.com/deskflow/deskflow / getHandler

Method getHandler

src/lib/base/EventQueue.cpp:292–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292const EventQueue::EventHandler *EventQueue::getHandler(EventTypes type, void *target) const
293{
294 std::scoped_lock lock{m_mutex};
295 if (HandlerTable::const_iterator index = m_handlers.find(target); index != m_handlers.end()) {
296 const TypeHandlerTable &typeHandlers = index->second;
297 TypeHandlerTable::const_iterator index2 = typeHandlers.find(type);
298 if (index2 != typeHandlers.end()) {
299 return &index2->second;
300 }
301 }
302 return nullptr;
303}
304
305uint32_t EventQueue::saveEvent(Event &&event)
306{

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected