5 writes to _headIndex
System.Collections.Concurrent (5)
System\Collections\Concurrent\ConcurrentBag.cs (5)
748
_headIndex
&= _mask;
805
_headIndex
= 0;
850
_headIndex
= _tailIndex = StartIndex;
991
Interlocked.Exchange(ref
_headIndex
, unchecked(head + 1));
1008
_headIndex
= head;
15 references to _headIndex
System.Collections.Concurrent (15)
System\Collections\Concurrent\ConcurrentBag.cs (15)
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;
750
Debug.Assert(
_headIndex
- _tailIndex <= 0);
772
int head =
_headIndex
; // read after _currentOp set to Add
784
head =
_headIndex
;
848
if (
_headIndex
- _tailIndex < 0)
864
if (
_headIndex
- tail >= 0)
884
if (!_frozen && (
_headIndex
- tail < 0))
900
if (
_headIndex
- tail <= 0)
939
if (
_headIndex
- tail < 0)
952
if (
_headIndex
- tail < 0)
971
int head =
_headIndex
; // _headIndex is only manipulated under the lock
1032
int headIndex =
_headIndex
;
1035
count == (_tailIndex -
_headIndex
) ||
1036
count == (_tailIndex + 1 -
_headIndex
),