Struct crossbeam::sync::MsQueue[][src]

pub struct MsQueue<T> { /* fields omitted */ }
Expand description

A Michael-Scott lock-free queue, with support for blocking pops.

Usable with any number of producers and consumers.

Implementations

Create a new, empty queue.

Add t to the back of the queue, possibly waking up threads blocked on pop.

Check if this queue is empty.

Attempt to dequeue from the front.

Returns None if the queue is observed to be empty.

Dequeue an element from the front of the queue, blocking if the queue is empty.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.