2 writes to _headIndex
System.Threading.Tasks.Dataflow (2)
Internal\QueuedMap.cs (2)
94
_headIndex
= newIndex;
129
_headIndex
= newHeadIndex;
10 references to _headIndex
System.Threading.Tasks.Dataflow (10)
Internal\QueuedMap.cs (10)
90
if (
_headIndex
== TERMINATOR_INDEX)
114
if (
_headIndex
== TERMINATOR_INDEX)
122
Debug.Assert(0 <=
_headIndex
&&
_headIndex
< _storage.Count, "Head is out of range.");
123
item = _storage[
_headIndex
].Value;
126
int newHeadIndex = _storage[
_headIndex
].Key;
127
_storage[
_headIndex
] = new KeyValuePair<int, T>(_freeIndex, default(T)!);
128
_freeIndex =
_headIndex
;
130
if (
_headIndex
== TERMINATOR_INDEX) _tailIndex = TERMINATOR_INDEX;
149
internal bool IsEmpty { get { return
_headIndex
== TERMINATOR_INDEX; } }