Library of Assembled Shared Sources
|
Non-blocking, lock-free FIFO data structure. More...
#include <lock_free_queue.h>
Public Member Functions | |
void | push (const value_type &x) |
push a value in the back | |
void | push (value_type &&x) |
push a value in the back | |
template<class... Args> | |
void | emplace (Args &&... args) |
emplace a value in the back | |
bool | pop (value_type &x) |
Try to pop a value from the front and store it in x. | |
Non-blocking, lock-free FIFO data structure.
M. M. Michael, M. L. Scott, "Simple, Fast, and Practical Non-Blocking and Blocking Concurrent Queue Algorithms", Proc. of the 15th Annual ACM Symposium on Principles of Distributed Computing (PODC' 96), New York, USA, pp. 267-275 (1996).
Definition at line 68 of file lock_free_queue.h.
void lass::stde::lock_free_queue< T, A >::push | ( | const value_type & | x | ) |
push a value in the back
Definition at line 92 of file lock_free_queue.inl.
References push().
bool lass::stde::lock_free_queue< T, A >::pop | ( | value_type & | x | ) |
Try to pop a value from the front and store it in x.
Definition at line 127 of file lock_free_queue.inl.
References pop().
Referenced by pop().