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]

[src]

Add an item to the stack, spinning until successful.

[src]

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

[src]

compare and push

[src]

attempt consolidation

[src]

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]

[src]

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

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

[src]

Executes the destructor for this type. Read more

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

[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