Пример #1
0
 public void IterationCleanup()
 {
     c5_arraylist.Clear();
     while (c5_circularqueue.Count > 0)
     {
         _ = c5_circularqueue.Dequeue();                 // There's no Clear() so we have to do this
     }
     c5_hashbag.Clear();
     c5_hashedarraylist.Clear();
     c5_hashedlinkedlist.Clear();
     c5_hashset.Clear();
     while (c5_intervalheap.Count > 0)
     {
         _ = c5_intervalheap.DeleteMax();                 // There's no Clear() so we have to do this
     }
     c5_linkedlist.Clear();
     c5_sortedarray.Clear();
     c5_treebag.Clear();
     c5_treeset.Clear();
     collectathon_boundedarray.Clear();
     collectathon_dynamicarray.Clear();
     collectathon_singlylinkedlist.Clear();
     msft_hashset.Clear();
     msft_linkedlist.Clear();
     msft_list.Clear();
     msft_queue.Clear();
     msft_segmentedlist.Clear();
     msft_sortedset.Clear();
     msft_stack.Clear();
 }
Пример #2
0
 public void Clear()
 {
     lock (m_syncObject)
     {
         m_ids.Clear();
         m_queue.Clear();
     }
 }
Пример #3
0
 /// <summary>
 ///     Notify any watchers; list of watchers is cleared after notification.
 /// </summary>
 /// <param name="committed">
 ///     Whether the transaction was committed.
 /// </param>
 /// <remarks>
 ///     The list of subscribers is cleared after notifications are sent. Therefore calling it twice will not result
 ///     in duplicate notifications unless subscriptions are renewed.
 ///     Any exceptions thrown from notification methods are logged and suppressed. They do
 ///     not prevent the rest of the subscribers from receiving the notification.
 ///     This method must be called after the transaction has completed.
 /// </remarks>
 private void NotifyCompletion(bool committed)
 {
     NotifyImpl((s) => NotifyCompletion(s, committed));
     _watchers.Clear();
 }
Пример #4
0
 public void Clear()
 {
     _results.Clear();
 }