This class provides a thread‐aware, lock‐free, fixed‐size queue of values.
Synopsis
Declared in <bdlcc_fixedqueue.h>
template<class TYPE>
class FixedQueue;
Member Functions
Name |
Description |
|
Create a thread‐aware lock‐free queue having the specified |
|
Destroy this object. |
Return the maximum number of elements that may be stored in this queue. |
|
Disable this queue. All subsequent invocations of |
|
Enable queuing. If the queue is not disabled, this call has no effect. |
|
Return |
|
Return |
|
Return |
|
DEPRECATED: Use |
|
Returns the number of elements currently in this queue. |
|
|
|
|
|
Remove all items from this queue. Note that this operation is not atomic; if other threads are concurrently pushing items into the queue the result of numElements() after this function returns is not guaranteed to be 0. |
|
DEPRECATED: Use |
|
Attempt to remove the element from the front of this queue without blocking, and, if successful, load the specified |
|
|
|
|
Declare that this type uses a |
Friends
Name |
Description |
This class provides a guard that, upon its destruction, will remove (pop) the indicated element from the |
|
This class provides a proctor that, unless the |
Created with MrDocs