2 instantiations of Segment
mscorlib (2)
system\threading\Tasks\ProducerConsumerQueues.cs (2)
153
m_head = m_tail = new
Segment
(INIT_SEGMENT_SIZE);
193
var newSegment = new
Segment
(newSegmentSize);
15 references to Segment
mscorlib (15)
system\threading\Tasks\ProducerConsumerQueues.cs (15)
139
private volatile
Segment
m_head;
141
private volatile
Segment
m_tail;
160
Segment
segment = m_tail;
178
private void EnqueueSlow(T item, ref
Segment
segment)
193
var
newSegment = new Segment(newSegmentSize);
212
Segment
segment = m_head;
233
private bool TryDequeueSlow(ref
Segment
segment, ref T[] array, out T result)
272
Segment
segment = m_head;
291
private bool TryPeekSlow(ref
Segment
segment, ref T[] array, out T result)
327
Segment
segment = m_head;
357
private bool TryDequeueIfSlow(Predicate<T> predicate, ref
Segment
segment, ref T[] array, out T result)
411
var
head = m_head;
422
for (
Segment
segment = m_head; segment != null; segment = segment.m_next)
443
for (
Segment
segment = m_head; segment != null; segment = segment.m_next)
475
internal
Segment
m_next;