#include <lock_free_stamped_queue.h>
Public Member Functions | |
| void | push (const_reference value) |
| Pushes a value onto the back of the queue. | |
| bool | pop (pointer value_out) |
| bool | empty () const |
| Tests if the queue is empty, limited utility for a concurrent container. | |
A lock-free queue implementation, uses stamped references to avoid the ABA problem. Requires an allocator, which must also be lock-free, and allow stale reads. It may recycle allocations concurrently.
|
inline |
Attempts to pop a value from the front of the queue. Returns false if the queue was empty, otherwise popped value is stored in value_out and returns true.