示例#1
0
 /// <summary>Dequeues an object from the priority queue.</summary>
 /// <returns>The top item (max priority) from the queue.</returns>
 public virtual object Dequeue()
 {
     return(_heap.Remove());
 }
示例#2
0
 /// <summary>Removes the entry at the top of the heap.</summary>
 /// <returns>The removed entry.</returns>
 public override object Remove()
 {
     lock (_heap.SyncRoot) return(_heap.Remove());
 }