Struct crossbeam::stack::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]

Create a new, empty stack.

Push t on top of the stack.

Attempt to pop the top element of the stack.

Returns None if the stack is observed to be empty.

Check if this queue is empty.

Trait Implementations

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

Formats the value using the given formatter. Read more

impl<T> Drop for TreiberStack<T>
[src]

Executes the destructor for this type. Read more

impl<T> Default for TreiberStack<T>
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<T> Send for TreiberStack<T> where
    T: Send + Sync

impl<T> Sync for TreiberStack<T> where
    T: Send + Sync