Exemple #1
0
 public T Dequeue()
 {
     using (m_lock.Acquire())
     {
         return(m_queue.Dequeue());
     }
 }
 private void RemoveExcess()
 {
     while (m_items.Count > Size)
     {
         m_items.Dequeue();
     }
 }