Esempio n. 1
0
            internal AtDequeuEnumerable(SlimConcurrentQueue <T> queue)
            {
                SinglyLinkedNode <T> head;
                SinglyLinkedNode <T> tail;

                while (Interlocked.CompareExchange(ref queue._head, tail = queue._tail, head = queue._head) != head)
                {
                }
                _start = head;
                _end   = tail;
            }
Esempio n. 2
0
 internal SnapshotEnumerable(SlimConcurrentQueue <T> queue)
 {
     _head = queue._head;
     _tail = queue._tail;
 }
Esempio n. 3
0
 internal Enumerator(SlimConcurrentQueue <T> queue)
 {
     _node = (_queue = queue)._head;
 }
Esempio n. 4
0
 internal DequeuEnumerator(SlimConcurrentQueue <T> queue)
 {
     _queue = queue;
 }
Esempio n. 5
0
 /// <summary>Creates a new <see cref="TrackedConcurrentQueue&lt;T>"/></summary>
 public TrackedConcurrentQueue()
 {
     _backing = new SlimConcurrentQueue <T>();
 }
Esempio n. 6
0
 /// <summary>
 /// Initialises a new instance of the <see cref="Ariadne.Collections.GroupedProducerConsumer{T}"/> class.
 /// </summary>
 public GroupedProducerConsumer()
 {
     _backing = new SlimConcurrentQueue <T>();
 }
Esempio n. 7
0
 public Enumerator(SlimConcurrentQueue <T> queue)
 {
     _queue = queue;
     _moved = false;
 }