5 writes to _headIndex
System.Collections.Concurrent (5)
System\Collections\Concurrent\ConcurrentBag.cs (5)
742
_headIndex
&= _mask;
799
_headIndex
= 0;
844
_headIndex
= _tailIndex = StartIndex;
988
Interlocked.Exchange(ref
_headIndex
, unchecked(head + 1));
1005
_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)
861
if (
_headIndex
- tail >= 0)
881
if (!_frozen && (
_headIndex
- tail < 0))
897
if (
_headIndex
- tail <= 0)
936
if (
_headIndex
- tail < 0)
949
if (
_headIndex
- tail < 0)
968
int head =
_headIndex
; // _headIndex is only manipulated under the lock
1029
int headIndex =
_headIndex
;
1032
count == (_tailIndex -
_headIndex
) ||
1033
count == (_tailIndex + 1 -
_headIndex
),