/// <summary> /// Initializes a new instance of the <see cref="ConcurrentQueue{T}"/> class. /// </summary> public SourceConcurrentQueue2(PipeWriter sender) { _crossSegmentLock = new object(); _sender = sender; _tail = _head = new ConcurrentQueueSegment <T>(sender, InitialSegmentLength); }
/// <summary> /// Initializes a new instance of the <see cref="ConcurrentQueue{T}"/> class. /// </summary> public SourceConcurrentQueue2() { _crossSegmentLock = new object(); _tail = _head = new ConcurrentQueueSegment <T>(InitialSegmentLength); }