Struct crossbeam::sync::TreiberStack [] [src]

pub struct TreiberStack<T> { /* fields omitted */ }

Treiber's lock-free stack.

Usable with any number of producers and consumers.

Methods

impl<T> TreiberStack<T>
[src]

[src]

Create a new, empty stack.

[src]

Push t on top of the stack.

[src]

Attempt to pop the top element of the stack. Deprecated method, use try_pop

Returns None if the stack is observed to be empty.

[src]

Attempt to pop the top element of the stack.

Returns None if the stack is observed to be empty.

[src]

Check if this queue is empty.

Trait Implementations

impl<T: Debug> Debug for TreiberStack<T>
[src]

[src]

Formats the value using the given formatter.