5 writes to _headIndex
System.Collections.Concurrent (5)
System\Collections\Concurrent\ConcurrentBag.cs (5)
742
_headIndex
&= _mask;
799
_headIndex
= 0;
844
_headIndex
= _tailIndex = StartIndex;
985
Interlocked.Exchange(ref
_headIndex
, unchecked(head + 1));
1002
_headIndex
= head;
15 references to _headIndex
System.Collections.Concurrent (15)
System\Collections\Concurrent\ConcurrentBag.cs (15)
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;
744
Debug.Assert(
_headIndex
- _tailIndex <= 0);
766
int head =
_headIndex
; // read after _currentOp set to Add
778
head =
_headIndex
;
842
if (
_headIndex
- _tailIndex < 0)
858
if (
_headIndex
- tail >= 0)
878
if (!_frozen && (
_headIndex
- tail < 0))
894
if (
_headIndex
- tail <= 0)
933
if (
_headIndex
- tail < 0)
946
if (
_headIndex
- tail < 0)
965
int head =
_headIndex
; // _headIndex is only manipulated under the lock
1026
int headIndex =
_headIndex
;
1029
count == (_tailIndex -
_headIndex
) ||
1030
count == (_tailIndex + 1 -
_headIndex
),