public virtual bool ForEachLinkInfo(ForEachLinkInfoAction action) { bool ret = false; lock (m_linksetActivityLock) { foreach (BSLinkInfo po in m_children.Values) { if (action(po)) { break; } } } return(ret); }
public virtual void ForEachLinkInfo(ForEachLinkInfoAction action) { m_linksetActivityLock.AcquireReaderLock(-1); try { foreach (BSLinkInfo po in m_children.Values) { if (action(po)) { break; } } } finally { m_linksetActivityLock.ReleaseReaderLock(); } }
public virtual void ForEachLinkInfo(ForEachLinkInfoAction action) { m_linksetActivityLock.AcquireReaderLock(-1); try { foreach (BSLinkInfo po in m_children.Values) { if (action(po)) break; } } finally { m_linksetActivityLock.ReleaseReaderLock(); } }
public virtual bool ForEachLinkInfo(ForEachLinkInfoAction action) { bool ret = false; lock (m_linksetActivityLock) { foreach (BSLinkInfo po in m_children.Values) { if (action(po)) break; } } return ret; }