MCPcopy Create free account
hub / github.com/Icinga/icinga2 / GetInboxes

Method GetInboxes

lib/remote/eventqueue.cpp:320–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320EventsFilter EventsRouter::GetInboxes(EventType type)
321{
322 std::unique_lock<std::mutex> lock (m_Mutex);
323
324 auto perType (m_Subscribers.find(type));
325
326 if (perType == m_Subscribers.end()) {
327 return EventsFilter({});
328 }
329
330 return EventsFilter(perType->second);
331}

Calls 3

EventsFilterClass · 0.85
findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected