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
Name |
Description |
|
Construct an empty stack. |
|
Destroy the stack and retire any remaining nodes for reclamation. |
Pop the top value off the stack. |
|
Push a value onto the top of the stack. |
Created with MrDocs