MCPcopy Create free account
hub / github.com/MITK/MITK / Send

Method Send

Modules/Core/include/mitkMessage.h:557–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555 typedef typename Super::ListenerList ListenerList;
556
557 void Send(T t) const
558 {
559 ListenerList listeners;
560
561 {
562 this->m_Mutex.lock();
563 listeners.assign(this->m_Listeners.begin(), this->m_Listeners.end());
564 this->m_Mutex.unlock();
565 }
566
567 for (auto iter = listeners.begin(); iter != listeners.end(); ++iter)
568 {
569 // notify each listener
570 (*iter)->Execute(t);
571 }
572 }
573
574 void operator() (T t) const { this->Send(t); }
575 };

Callers 1

operator()Method · 0.95

Calls 5

lockMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
unlockMethod · 0.45
ExecuteMethod · 0.45

Tested by

no test coverage detected