Struct concurrent_stack::ConcurrentStack
[−]
[src]
pub struct ConcurrentStack<T> { /* fields omitted */ }
A lock free FILO structure.
Methods
impl<T> ConcurrentStack<T>
[src]
fn new() -> Self
fn push(&self, raw: T)
Push a value on the top of stack.
fn pop(&self) -> Option<T>
Pop a value from the top of stack, if no available, return None.
fn empty(&self) -> bool
Check if stack is empty.