7 writes to _tailIndex
System.Collections.Concurrent (7)
System\Collections\Concurrent\ConcurrentBag.cs (7)
743_tailIndex = tail &= _mask; 770_tailIndex = tail + 1; 800_tailIndex = tail = count; 806_tailIndex = tail + 1; 844_headIndex = _tailIndex = StartIndex; 872Interlocked.Exchange(ref _tailIndex, --tail); 909_tailIndex = tail + 1;
13 references to _tailIndex
System.Collections.Concurrent (13)
System\Collections\Concurrent\ConcurrentBag.cs (13)
674/// <summary>Mask and'd with <see cref="_headIndex"/> and <see cref="_tailIndex"/> to get an index into <see cref="_array"/>.</summary> 707return _headIndex - _tailIndex >= 0; 724int tail = _tailIndex; 733Debug.Assert(_tailIndex == tail, "No other thread should be changing _tailIndex"); 744Debug.Assert(_headIndex - _tailIndex <= 0); 842if (_headIndex - _tailIndex < 0) 857int tail = _tailIndex; 932int tail = _tailIndex; 972if ((head - (_tailIndex - 2) >= 0) && _currentOp == Operation.Add) 988if (head < _tailIndex) 1005else if (head < _tailIndex) 1029count == (_tailIndex - _headIndex) || 1030count == (_tailIndex + 1 - _headIndex),