2 writes to _storage
System.Threading.Tasks.Dataflow (2)
Internal\QueuedMap.cs (2)
58
_storage
= new List<KeyValuePair<int, T>>();
65
_storage
= new List<KeyValuePair<int, T>>(capacity);
15 references to _storage
System.Threading.Tasks.Dataflow (15)
Internal\QueuedMap.cs (15)
78
Debug.Assert(0 <= _freeIndex && _freeIndex <
_storage
.Count, "Index is out of range.");
80
_freeIndex =
_storage
[_freeIndex].Key;
81
_storage
[newIndex] = new KeyValuePair<int, T>(TERMINATOR_INDEX, item);
86
newIndex =
_storage
.Count;
87
_storage
.Add(new KeyValuePair<int, T>(TERMINATOR_INDEX, item));
100
_storage
[_tailIndex] = new KeyValuePair<int, T>(newIndex,
_storage
[_tailIndex].Value);
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)!);
140
Debug.Assert(0 <= index && index <
_storage
.Count, "Index is out of range.");
143
for (int idx = _freeIndex; idx != TERMINATOR_INDEX; idx =
_storage
[idx].Key)
146
_storage
[index] = new KeyValuePair<int, T>(
_storage
[index].Key, item);