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;
872
Interlocked.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>
707
return _headIndex -
_tailIndex
>= 0;
724
int tail =
_tailIndex
;
733
Debug.Assert(
_tailIndex
== tail, "No other thread should be changing _tailIndex");
744
Debug.Assert(_headIndex -
_tailIndex
<= 0);
842
if (_headIndex -
_tailIndex
< 0)
857
int tail =
_tailIndex
;
932
int tail =
_tailIndex
;
972
if ((head - (
_tailIndex
- 2) >= 0) && _currentOp == Operation.Add)
988
if (head <
_tailIndex
)
1005
else if (head <
_tailIndex
)
1029
count == (
_tailIndex
- _headIndex) ||
1030
count == (
_tailIndex
+ 1 - _headIndex),