This class provides a thread‐safe bounded queue of values that supports a single producer and a single consumer.
Synopsis
Declared in <bdlcc_singleproducersingleconsumerboundedqueue.h>
template<class TYPE>
class SingleProducerSingleConsumerBoundedQueue;
Type Aliases
Name |
Description |
The type for elements stored in this queue. |
Enums
Name |
Description |
Status codes returned by queue operations. |
Member Functions
Name |
Description |
|
Create a thread‐aware queue with at least the specified |
|
Destroy this object. |
Return the allocator used by this object to supply memory. |
|
Return the maximum number of elements that may be stored in this queue. Note that the value returned may be greater than that supplied at construction. |
|
Disable dequeueing from this queue. |
|
Disable enqueueing into this queue. |
|
Enable dequeueing. If the queue is not dequeue disabled, this call has no effect. |
|
Enable queuing. If the queue is not enqueue disabled, this call has no effect. |
|
Return |
|
Return |
|
Return |
|
Return |
|
Returns the number of elements currently in this queue. |
|
Remove the element from the front of this queue and load that element into the specified |
|
|
|
Remove all items currently in this queue. |
|
Attempt to remove the front element of this queue without blocking. |
|
|
|
Block until all the elements in this queue are removed. |
|
Declare that this type uses a |
Friends
Name |
Description |
|
This class implements a guard that invokes |
Created with MrDocs