bool LocalNodeInfo::hasSubscription (uint16 ui16ClientId, Message *pMessage) { _m.lock (318); SubscriptionList *pSL = _localSubscriptions.get (ui16ClientId); if (pSL == NULL) { _m.unlock (318); return false; } bool bRet = pSL->hasSubscriptionWild (pMessage); _m.unlock (318); return bRet; }
bool LocalNodeInfo::hasSubscription (Message *pMessage) { _m.lock (317); for (UInt32Hashtable<SubscriptionList>::Iterator i = _localSubscriptions.getAllElements(); !i.end(); i.nextElement()) { SubscriptionList *pSL = i.getValue(); if (pSL->hasSubscriptionWild (pMessage)) { _m.unlock (317); return true; } } _m.unlock (317); return false; }