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