14 writes to Tail
System.Private.CoreLib (14)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueue.cs (11)
267int headTail = Volatile.Read(ref head._headAndTail.Tail); 279headTail == Volatile.Read(ref head._headAndTail.Tail)) 289int tailTail = Volatile.Read(ref tail._headAndTail.Tail); 293headTail == Volatile.Read(ref head._headAndTail.Tail) && 295tailTail == Volatile.Read(ref tail._headAndTail.Tail)) 315int tailTail = Volatile.Read(ref tail._headAndTail.Tail); 317headTail == Volatile.Read(ref head._headAndTail.Tail) && 319tailTail == Volatile.Read(ref tail._headAndTail.Tail)) 379int headTail = (head == tail ? tailTail : Volatile.Read(ref head._headAndTail.Tail)) - head.FreezeOffset; 517tailTail = Volatile.Read(ref tail._headAndTail.Tail); 553int headTail = (head == tail ? tailTail : Volatile.Read(ref head._headAndTail.Tail)) - head.FreezeOffset;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueueSegment.cs (3)
103Interlocked.Add(ref _headAndTail.Tail, FreezeOffset); 276int currentTail = Volatile.Read(ref _headAndTail.Tail); 295if (Interlocked.CompareExchange(ref _headAndTail.Tail, currentTail + 1, currentTail) == currentTail)
5 references to Tail
System.Private.CoreLib (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueue.cs (3)
336count += s._headAndTail.Tail - s.FreezeOffset; 405count += s._headAndTail.Tail - s.FreezeOffset; 580int sTail = s._headAndTail.Tail - s.FreezeOffset;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueueSegment.cs (2)
169int currentTail = _headAndTail.Tail; 238int currentTail = _headAndTail.Tail;