A lock-free LIFO stack that reclaims popped nodes with hazard pointers.
Declared in <folly/synchronization/example/HazptrLockFreeLIFO.h>
template<
typename T,
template<typename> typename Atom = atomic>
class HazptrLockFreeLIFO;
| Name | Description |
|---|---|
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. |