16 writes to Tail
System.Private.CoreLib (16)
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\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueueSegment.cs (5)
102
Interlocked.Add(ref _headAndTail.
Tail
, FreezeOffset);
167
int currentTail = Volatile.Read(ref _headAndTail.
Tail
);
236
int currentTail = Volatile.Read(ref _headAndTail.
Tail
);
274
int currentTail = Volatile.Read(ref _headAndTail.
Tail
);
293
if (Interlocked.CompareExchange(ref _headAndTail.
Tail
, currentTail + 1, currentTail) == currentTail)
3 references to Tail
System.Private.CoreLib (3)
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;