Beispiel #1
0
 public static void Sort <T>(ConcurrentCollector <T> collection, IComparer <T> comparer)
 {
     Sort(collection.Items, 0, collection.Count, comparer);
 }
Beispiel #2
0
 public static void ForEach <T>(ConcurrentCollector <T> collection, [Pooled] ValueAction <T> action)
 {
     For(0, collection.Count, i => action(ref collection.Items[i]));
 }
Beispiel #3
0
 internal Enumerator(ConcurrentCollector <T> list)
 {
     this.list = list;
     index     = 0;
     current   = default(T);
 }
Beispiel #4
0
 public static void Add <T>(this ConcurrentCollector <T> collection, T item, ConcurrentCollectorCache <T> cache)
 {
     cache.Add(collection, item);
 }
Beispiel #5
0
 public static void ForEach <T>([NotNull] ConcurrentCollector <T> collection, [Pooled] Action <T> action)
 {
     For(0, collection.Count, i => action(collection.Items[i]));
 }