/// <summary>
 /// Removes every node from the queue.
 /// O(n)
 /// </summary>
 public void Clear()
 {
     lock (_queue)
     {
         _queue.Clear();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Removes every node from the queue.
 /// O(n)
 /// </summary>
 public void Clear()
 {
     lock (_queue) {
         _queue.Clear();
         _itemToNodesCache.Clear();
         _nullNodesCache.Clear();
     }
 }