folly::HazptrLockFreeLIFO

A lock-free LIFO stack that reclaims popped nodes with hazard pointers.

Synopsis

Declared in <folly/synchronization/example/HazptrLockFreeLIFO.h>

template<
    typename T,
    template<typename> typename Atom = atomic>
class HazptrLockFreeLIFO;

Member Functions

NameDescription
HazptrLockFreeLIFO [constructor]Construct an empty stack.
~HazptrLockFreeLIFO [destructor]Destroy the stack and retire any remaining nodes for reclamation.
pop Pop the top value off the stack.
push Push a value onto the top of the stack.