Struct crossbeam::queue::SegQueue[][src]

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

A Michael-Scott queue that allocates "segments" (arrays of nodes) for efficiency.

Usable with any number of producers and consumers.

Methods

impl<T> SegQueue<T>
[src]

Create a new, empty queue.

Add t to the back of the queue.

Judge if the queue is empty.

Returns true if the queue is empty.

Attempt to dequeue from the front.

Returns None if the queue is observed to be empty.

Trait Implementations

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

Formats the value using the given formatter. Read more

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

Executes the destructor for this type. Read more

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

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

Auto Trait Implementations

impl<T> Send for SegQueue<T> where
    T: Send

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