Struct pagecache::Stack[][src]

pub struct Stack<T: Send + 'static> { /* fields omitted */ }

A simple lock-free stack, with the ability to atomically append or entirely swap-out entries.

Methods

impl<T: Send + 'static> Stack<T>
[src]

Add an item to the stack, spinning until successful.

Pop the next item off the stack. Returns None if nothing is there.

compare and push

attempt consolidation

Returns the current head pointer of the stack, which can later be used as the key for cas and cap operations.

Trait Implementations

impl<T: Send + 'static> Default for Stack<T>
[src]

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

impl<T: Send + 'static> Drop for Stack<T>
[src]

Executes the destructor for this type. Read more

impl<T> Debug for Stack<T> where
    T: Debug + Send + 'static + Sync
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for Stack<T> where
    T: Sync

impl<T> Sync for Stack<T> where
    T: Sync