2 writes to Chain
WindowsBase (2)
Base\MS\Internal\PriorityQueue.cs (2)
209
item.
Chain
= chain;
305
item.
Chain
= null;
18 references to Chain
WindowsBase (18)
Base\MS\Internal\PriorityQueue.cs (18)
104
Debug.Assert(item.
Chain
!= null, "PriorityQueue.RemoveItem: a chain should exist.");
106
PriorityChain<T> chain = item.
Chain
;
194
if(after.
Chain
== chain)
207
Debug.Assert(item.
Chain
== null && item.PriorityPrev == null && item.PriorityNext == null, "PriorityQueue.InsertItemInPriorityChain: item must not already be in a priority chain.");
242
Debug.Assert(item.
Chain
.Tail == after, "PriorityQueue.InsertItemInPriorityChain: the chain's tail should be the item we are inserting after.");
254
Debug.Assert(item.
Chain
!= null, "PriorityQueue.RemoveItemFromPriorityChain: a chain should exist.");
259
Debug.Assert(item.
Chain
.Head != item, "PriorityQueue.RemoveItemFromPriorityChain: the head should not point to this item.");
265
Debug.Assert(item.
Chain
.Head == item, "PriorityQueue.RemoveItemFromPriorityChain: the head should point to this item.");
267
item.
Chain
.Head = item.PriorityNext;
273
Debug.Assert(item.
Chain
.Tail != item, "PriorityQueue.RemoveItemFromPriorityChain: the tail should not point to this item.");
279
Debug.Assert(item.
Chain
.Tail == item, "PriorityQueue.RemoveItemFromPriorityChain: the tail should point to this item.");
281
item.
Chain
.Tail = item.PriorityPrev;
286
item.
Chain
.Count--;
287
if(item.
Chain
.Count == 0)
289
if(item.
Chain
.Priority == (DispatcherPriority) _priorityChains.Keys[_priorityChains.Count - 1])
295
_priorityChains.Remove((int) item.
Chain
.Priority);
300
item.
Chain
.Priority = DispatcherPriority.Invalid; // NOTE: should be Priority.Invalid
301
_cacheReusableChains.Push(item.
Chain
);