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; 767if (!_frozen && (head - (tail - 1) < 0) && (tail - (head + _mask) < 0)) 769_array[tail & _mask] = item; 782if (count >= _mask) 786int headIdx = head & _mask; 801_mask = (_mask << 1) | 1; 805_array[tail & _mask] = item; 880int idx = tail & _mask; 897int idx = tail & _mask; 948result = _array[(tail - 1) & _mask]; 990int idx = head & _mask; 1008result = _array[head & _mask]; 1039array[i] = _array[headIndex++ & _mask];