15 references to TERMINATOR_INDEX
System.Threading.Tasks.Dataflow (15)
Internal\QueuedMap.cs (15)
49private int _headIndex = TERMINATOR_INDEX;
51private int _tailIndex = TERMINATOR_INDEX;
53private int _freeIndex = TERMINATOR_INDEX;
76if (_freeIndex != TERMINATOR_INDEX)
81_storage[newIndex] = new KeyValuePair<int, T>(TERMINATOR_INDEX, item);
87_storage.Add(new KeyValuePair<int, T>(TERMINATOR_INDEX, item));
90if (_headIndex == TERMINATOR_INDEX)
93Debug.Assert(_tailIndex == TERMINATOR_INDEX, "If head indicates empty, so too should tail.");
99Debug.Assert(_tailIndex != TERMINATOR_INDEX, "If head does not indicate empty, neither should tail.");
114if (_headIndex == TERMINATOR_INDEX)
116Debug.Assert(_tailIndex == TERMINATOR_INDEX, "If head indicates empty, so too should tail.");
130if (_headIndex == TERMINATOR_INDEX) _tailIndex = TERMINATOR_INDEX;
143for (int idx = _freeIndex; idx != TERMINATOR_INDEX; idx = _storage[idx].Key)
149internal bool IsEmpty { get { return _headIndex == TERMINATOR_INDEX; } }