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);
        }
Beispiel #2
0
 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();
     }
 }
Beispiel #3
0
 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;
 }