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

Method Send

Modules/Core/include/mitkMessage.h:589–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

587 typedef typename Super::ListenerList ListenerList;
588
589 void Send(T t, U u) const
590 {
591 ListenerList listeners;
592
593 {
594 this->m_Mutex.lock();
595 listeners.assign(this->m_Listeners.begin(), this->m_Listeners.end());
596 this->m_Mutex.unlock();
597 }
598
599 for (auto iter = listeners.begin(); iter != listeners.end(); ++iter)
600 {
601 // notify each listener
602 (*iter)->Execute(t, u);
603 }
604 }
605
606 void operator()(T t, U u) const { this->Send(t, u); }
607 };

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