Dequeues the entry with the highest priority from the queue.
(&mut self)
| 155 | |
| 156 | /// Dequeues the entry with the highest priority from the queue. |
| 157 | pub fn dequeue(&mut self) -> Option<(VirtRegOrGroup, Stage)> { |
| 158 | self.queue.pop().map(Entry::decode) |
| 159 | } |
| 160 | |
| 161 | /// Enqueues an entry into the priority queue. |
| 162 | pub fn enqueue(&mut self, vreg_or_group: VirtRegOrGroup, stage: Stage, virt_regs: &VirtRegs) { |