Struct Ase::AtomicStack
template <typename Value, template< class > class GrowOnlyAllocator>
ClassList > Ase > AtomicStack
#include <atomics.hh>
Public Functions
Type | Name |
---|---|
bool | empty () const Return true if the stack holds no items. |
bool | pop (Value & value) Pop value from top of the stack, returns ifvalue was reassigned (true), otherwise the stack was empty. |
bool | push (Value && value) Add value to top of the stack, returns if the stack was empty (true). |
bool | push (const Value & value) Add a copy of value to top of the stack, returns if the stack was empty (true). |
Detailed Description
Thread-safe, lock-free stack based on MpmcStack and an Allocator with allows_read_after_free
.
Public Functions Documentation
function empty
inline bool Ase::AtomicStack::empty () const
function pop
inline bool Ase::AtomicStack::pop (
Value & value
)
function push [1/2]
inline bool Ase::AtomicStack::push (
Value && value
)
function push [2/2]
inline bool Ase::AtomicStack::push (
const Value & value
)
The documentation for this class was generated from the following file /__w/anklang/anklang/ase/atomics.hh