#include "atomics.hh"
Public Member Functions | |
bool | empty () const |
bool | pop (Value &value) |
bool | push (const Value &value) |
bool | push (Value &&value) |
Thread-safe, lock-free stack based on MpmcStack and an Allocator with `allows_read_after_free`.
bool empty | ( | ) | const |
Return `true` if the stack holds no items.
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).