TUint NetworkAdapterList::AddSubnetListener(FunctorNetworkAdapter aFunctor, MapNetworkAdapter& aMap) { iListenerLock.Wait(); TUint id = iNextListenerId; aMap.insert(std::pair<TUint,FunctorNetworkAdapter>(id, aFunctor)); iNextListenerId++; iListenerLock.Signal(); return id; }
TUint NetworkAdapterList::AddSubnetListener(FunctorNetworkAdapter aFunctor, const TChar* aId, MapNetworkAdapter& aMap) { iListenerLock.Wait(); TUint id = iNextListenerId; ListenerNetworkAdapter listener(aFunctor, aId); aMap.insert(std::pair<TUint, ListenerNetworkAdapter>(id, listener)); iNextListenerId++; iListenerLock.Signal(); return id; }