This class provides a thread‐safe unbounded queue of values that assumes a single producer thread.
Synopsis
Declared in <bdlcc_singleproducerqueue.h>
template<class TYPE>
class SingleProducerQueue;
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 |
|
Constructors |
Return the allocator used by this object to supply memory. |
|
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 front element and load it into the specified |
|
|
|
Remove all items currently in this queue. |
|
Attempt to remove the front element without blocking. |
|
|
|
Block until all elements in this queue are removed. |
|
|
Declare that this type uses a |
Created with MrDocs