MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / dispatchEvent

Method dispatchEvent

base/poco/XML/src/EventDispatcher.cpp:86–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85
86void EventDispatcher::dispatchEvent(Event* evt)
87{
88 DispatchGuard guard(_inDispatch);
89 EventListenerList::iterator it = _listeners.begin();
90 while (it != _listeners.end())
91 {
92 if (it->pListener && it->type == evt->type())
93 {
94 it->pListener->handleEvent(evt);
95 }
96 if (!it->pListener)
97 {
98 EventListenerList::iterator del = it++;
99 _listeners.erase(del);
100 }
101 else ++it;
102 }
103}
104
105
106void EventDispatcher::captureEvent(Event* evt)

Callers

nothing calls this directly

Calls 4

beginMethod · 0.45
endMethod · 0.45
typeMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected