void FIFOMultiplexer::distributeContainer(Container &c){ { Lock l(m_fifoMutex); vector<ContainerListener*>::iterator it = m_listOfContainerListeners.begin(); while (it != m_listOfContainerListeners.end()) { ContainerListener *cl = (*it++); if (cl != NULL) { cl->nextContainer(c); } } } }
void ControlledContainerConferenceFactory::sendToSCC(core::data::Container &c) { Lock l(m_listOfContainerListenersToReceiveContainersFromSystemsUnderTestMutex); clog << "Distributing '" << c.toString() << "' in ControlledContainerConferenceFactory to all SystemParts." << endl; vector<ContainerListener*>::iterator it = m_listOfContainerListenersToReceiveContainersFromSystemsUnderTest.begin(); while (it != m_listOfContainerListenersToReceiveContainersFromSystemsUnderTest.end()) { ContainerListener *cl = (*it++); if (cl != NULL) { cl->nextContainer(c); } } }