Creates a thread-safe priority queue that will wait when no data is available and can block if the queue is full.
More...
|
| PriorityBlockingQueue () |
| Creates a priority blocking queue that will only block a data requester when the queue is empty.
|
|
| PriorityBlockingQueue (size_t qSize) |
| Creates a priority blocking queue that will block a data requester when the queue is empty or full. More...
|
|
| ~PriorityBlockingQueue () |
| Destructor.
|
|
size_t | remainingCapacity () |
| Gets the remaining capacity of the priority queue based on the queueSize. More...
|
|
bool | isEmpty () |
| Gets whether the priority queue is empty or not. More...
|
|
size_t | size () |
| Gets the number of elements in the priority queue. More...
|
|
T | remove () |
| Removes an element from the priority queue. More...
|
|
void | Enqueue (T const &value) |
| Adds an element into the priority queue. More...
|
|
T | Dequeue () |
| Removes an element from the priority queue. More...
|
|
T | poll (size_t timeout) |
| Polls for data given the specified timeout time in microseconds. More...
|
|
template<class T>
class htgs::PriorityBlockingQueue< T >
Creates a thread-safe priority queue that will wait when no data is available and can block if the queue is full.
If the size of the queue is specified to be less than 0 (default constructor), then the queue will not block if the queue is full.
- Note
- Use the directive USE_PRIORITY_QUEUE to enable the Connector to use priority blocking queues.