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;
878
Interlocked.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>
713
return _headIndex -
_tailIndex
>= 0;
730
int tail =
_tailIndex
;
739
Debug.Assert(
_tailIndex
== tail, "No other thread should be changing _tailIndex");
750
Debug.Assert(_headIndex -
_tailIndex
<= 0);
848
if (_headIndex -
_tailIndex
< 0)
863
int tail =
_tailIndex
;
938
int tail =
_tailIndex
;
978
if ((head - (
_tailIndex
- 2) >= 0) && _currentOp == Operation.Add)
994
if (head <
_tailIndex
)
1011
else if (head <
_tailIndex
)
1035
count == (
_tailIndex
- _headIndex) ||
1036
count == (
_tailIndex
+ 1 - _headIndex),