1 write to _mask
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentBag.cs (1)
801
_mask
= (_mask << 1) | 1;
16 references to _mask
System.Collections.Concurrent (16)
System\Collections\Concurrent\ConcurrentBag.cs (16)
668
/// <summary>Head index from which to steal. This and'd with the <see cref="
_mask
"/> is the index into <see cref="_array"/>.</summary>
670
/// <summary>Tail index at which local pushes/pops happen. This and'd with the <see cref="
_mask
"/> is the index into <see cref="_array"/>.</summary>
742
_headIndex &=
_mask
;
743
_tailIndex = tail &=
_mask
;
767
if (!_frozen && (head - (tail - 1) < 0) && (tail - (head +
_mask
) < 0))
769
_array[tail &
_mask
] = item;
782
if (count >=
_mask
)
786
int headIdx = head &
_mask
;
801
_mask = (
_mask
<< 1) | 1;
805
_array[tail &
_mask
] = item;
880
int idx = tail &
_mask
;
897
int idx = tail &
_mask
;
948
result = _array[(tail - 1) &
_mask
];
990
int idx = head &
_mask
;
1008
result = _array[head &
_mask
];
1039
array[i] = _array[headIndex++ &
_mask
];