BloombergLP::bdlcc::MultipriorityQueue::popFront

Remove the most urgent item from this queue, blocking if empty.

Synopsis

Declared in <bdlcc_multipriorityqueue.h>

void
popFront(
    TYPE* item,
    int* itemPriority = 0);

Description

Remove the least-recently added item having the most urgent priority (lowest value) from this multi-priority queue and load its value into the specified item. If this queue is empty, this method blocks the calling thread until an item becomes available. If the optionally specified itemPriority is non-null, load the priority of the popped item into itemPriority. The behavior is undefined unless item is non-null. Note this is unaffected by the enabled / disabled state of the queue.

Parameters

NameDescription
itemreceives the removed item
itemPriorityif non-null, receives the removed item's priority