7 writes to _tailIndex
System.Collections.Concurrent (7)
System\Collections\Concurrent\ConcurrentBag.cs (7)
749_tailIndex = tail &= _mask; 776_tailIndex = tail + 1; 806_tailIndex = tail = count; 812_tailIndex = tail + 1; 850_headIndex = _tailIndex = StartIndex; 878Interlocked.Exchange(ref _tailIndex, --tail); 915_tailIndex = tail + 1;
13 references to _tailIndex
System.Collections.Concurrent (13)
System\Collections\Concurrent\ConcurrentBag.cs (13)
680/// <summary>Mask and'd with <see cref="_headIndex"/> and <see cref="_tailIndex"/> to get an index into <see cref="_array"/>.</summary> 713return _headIndex - _tailIndex >= 0; 730int tail = _tailIndex; 739Debug.Assert(_tailIndex == tail, "No other thread should be changing _tailIndex"); 750Debug.Assert(_headIndex - _tailIndex <= 0); 848if (_headIndex - _tailIndex < 0) 863int tail = _tailIndex; 938int tail = _tailIndex; 978if ((head - (_tailIndex - 2) >= 0) && _currentOp == (int)Operation.Add) 994if (head < _tailIndex) 1011else if (head < _tailIndex) 1035count == (_tailIndex - _headIndex) || 1036count == (_tailIndex + 1 - _headIndex),