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

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

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

Usable with any number of producers and consumers.

Methods

impl<T> MsQueue<T>
[src]

[src]

Create a new, empty queue.

[src]

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

[src]

Check if this queue is empty.

[src]

Attempt to dequeue from the front.

Returns None if the queue is observed to be empty.

[src]

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

Trait Implementations

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

[src]

Formats the value using the given formatter.

impl<T: Send> Sync for MsQueue<T>
[src]

impl<T: Send> Send for MsQueue<T>
[src]