1 write to _slots
MSBuildTaskHost (1)
Concurrent\ConcurrentQueue.cs (1)
299_slots = new Slot[boundedLength];
14 references to _slots
MSBuildTaskHost (14)
Concurrent\ConcurrentQueue.cs (14)
316for (int i = 0; i < _slots.Length; i++) 318_slots[i].SequenceNumber = i; 323internal int Capacity => _slots.Length; 326internal int FreezeOffset => _slots.Length * 2; 373int sequenceNumber = Thread.VolatileRead(ref _slots[slotsIndex].SequenceNumber); 392item = _slots[slotsIndex].Item; 398_slots[slotsIndex].Item = default(T); 399Thread.VolatileWrite(ref _slots[slotsIndex].SequenceNumber, currentHead + _slots.Length); 452int sequenceNumber = Thread.VolatileRead(ref _slots[slotsIndex].SequenceNumber); 459result = resultUsed ? _slots[slotsIndex].Item : default(T); 504int sequenceNumber = Thread.VolatileRead(ref _slots[slotsIndex].SequenceNumber); 523_slots[slotsIndex].Item = item; 524Thread.VolatileWrite(ref _slots[slotsIndex].SequenceNumber, currentTail + 1);