1 write to _items
System.Threading.Channels (1)
System\Threading\Channels\UnboundedPriorityChannel.cs (1)
43
_items
= new PriorityQueue<bool, T>(comparer);
15 references to _items
System.Threading.Channels (15)
System\Threading\Channels\UnboundedPriorityChannel.cs (15)
67
public override int Count => _parent.
_items
.Count;
83
if (parent.
_items
.TryDequeue(out _, out T? item))
119
if (parent.
_items
.TryDequeue(out _, out item))
135
return parent.
_items
.TryPeek(out _, out item);
143
if (parent._doneWriting != null && parent.
_items
.Count == 0)
163
if (parent.
_items
.Count != 0)
223
completeTask = parent.
_items
.Count == 0;
270
parent.
_items
.Enqueue(true, item);
322
private int ItemsCountForDebugger => _parent.
_items
.Count;
329
private object SyncObj =>
_items
;
337
if (
_items
.Count != 0)
348
Debug.Assert(
_items
.Count == 0, "There are blocked/waiting readers, so there shouldn't be any data available.");
357
private int ItemsCountForDebugger =>
_items
.Count;
366
foreach ((bool _, T Priority) item in
_items
.UnorderedItems)
371
list.Sort(
_items
.Comparer);