1 write to _mask
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentBag.cs (1)
807_mask = (_mask << 1) | 1;
16 references to _mask
System.Collections.Concurrent (16)
System\Collections\Concurrent\ConcurrentBag.cs (16)
674/// <summary>Head index from which to steal. This and'd with the <see cref="_mask"/> is the index into <see cref="_array"/>.</summary> 676/// <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> 748_headIndex &= _mask; 749_tailIndex = tail &= _mask; 773if (!_frozen && (head - (tail - 1) < 0) && (tail - (head + _mask) < 0)) 775_array[tail & _mask] = item; 788if (count >= _mask) 792int headIdx = head & _mask; 807_mask = (_mask << 1) | 1; 811_array[tail & _mask] = item; 886int idx = tail & _mask; 903int idx = tail & _mask; 954result = _array[(tail - 1) & _mask]; 996int idx = head & _mask; 1014result = _array[head & _mask]; 1045array[i] = _array[headIndex++ & _mask];