void NetworkAdapterList::RunSubnetCallbacks(MapNetworkAdapter& aMap, NetworkAdapter& aAdapter) { AutoMutex a(iListenerLock); MapNetworkAdapter::iterator it = aMap.begin(); while (it != aMap.end()) { it->second(aAdapter); it++; } }
void NetworkAdapterList::RunSubnetCallbacks(MapNetworkAdapter& aMap, NetworkAdapter& aAdapter) { AutoMutex a(iListenerLock); MapNetworkAdapter::iterator it = aMap.begin(); while (it != aMap.end()) { LOG(kAdapterChange, "NetworkAdapterList::RunSubnetCallbacks - client is %s\n", it->second.iId); it->second.iFunctor(aAdapter); it++; } }