1 write to _items
System.Threading.Channels (1)
System\Threading\Channels\UnboundedPriorityChannel.cs (1)
46
_items
= new PriorityQueue<bool, T>(comparer);
15 references to _items
System.Threading.Channels (15)
System\Threading\Channels\UnboundedPriorityChannel.cs (15)
73
public override int Count => _parent.
_items
.Count;
89
if (parent.
_items
.TryDequeue(out _, out T? item))
116
if (parent.
_items
.TryDequeue(out _, out item))
132
return parent.
_items
.TryPeek(out _, out item);
140
if (parent._doneWriting is not null && parent.
_items
.Count == 0)
160
if (parent.
_items
.Count != 0)
214
completeTask = parent.
_items
.Count == 0;
265
parent.
_items
.Enqueue(true, item);
299
private int ItemsCountForDebugger => _parent.
_items
.Count;
306
private object SyncObj =>
_items
;
343
if (
_items
.Count != 0)
355
Debug.Assert(
_items
.Count == 0, "There are blocked/waiting readers, so there shouldn't be any data available.");
365
private int ItemsCountForDebugger =>
_items
.Count;
374
foreach ((bool _, T Priority) item in
_items
.UnorderedItems)
379
list.Sort(
_items
.Comparer);