This class provides a thread‐enabled, double‐ended queue of TYPE values.
Synopsis
Declared in <bdlcc_queue.h>
template<class TYPE>
class Queue;
Description
This class provides a thread‐enabled implementation of an efficient, in‐place, indexable, double‐ended queue of parameterized TYPE values. Very efficient access to the underlying bdlc::Queue object is provided, as well as to a bslmt::Mutex and a bslmt::Condition variable, to facilitate thread‐safe use of the bdlc::Queue. Note that Queue is not a value‐semantic type, but the underlying bdlc::Queue is. In this regard, Queue is a thread‐enabled handle for a bdlc::Queue.
Types
Name |
Description |
Enable uniform use of an optional integral initial‐capacity argument. |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this container. The behavior is undefined unless all access or modification of the container has completed prior to this call. |
Return a reference to the modifiable condition variable used by this queue to signal that the queue is not empty. |
|
Append |
|
Return the high‐water mark value for this queue. |
|
Return a reference to the condition signaling that the queue is not full. |
|
Return the number of elements in this queue. Note that if other threads are manipulating the queue, this information may be obsolete by the time it is returned. |
|
Return a reference to the modifiable mutex used by this queue to synchronize access to its underlying |
|
Return the condition variable used by this queue to signal that the queue is not empty. |
|
Return the condition used to signal that this queue is not full. |
|
|
|
|
|
Append |
|
Append |
|
Return a reference to the modifiable underlying |
|
|
|
Remove the last item into |
|
Remove the first item into |
|
Append |
|
Append |
|
|
|
|
|
|
Declare that this type uses a |
Created with MrDocs