Example #1
0
        public override bool Remove(T item)
        {
            var tmpPair = WaitQueue.NewPair(item, 0);

            Debug.Assert(_items.Contains(tmpPair));
            return(_items.Remove(tmpPair));
        }
Example #2
0
 public override void Add(T item, double priority)
 {
     _items.Add(WaitQueue.NewPair(item, _random.Next()));
 }
Example #3
0
 public override bool Contains(T item)
 {
     return(_items.Contains(WaitQueue.NewPair(item, 0)));
 }
Example #4
0
 public override void Add(T item, double priority)
 {
     _items.Add(WaitQueue.NewPair(item, priority));
 }