Struct syncbox::LinkedQueue [] [src]

pub struct LinkedQueue<T: Send> { /* fields omitted */ }

A queue in which values are contained by a linked list.

The current implementation is based on a mutex and two condition variables. It is also mostly a placeholder until a lock-free version is implemented, so it has not been tuned for performance.

Methods

impl<T: Send> LinkedQueue<T>
[src]

Takes from the queue, blocking until there is an element available.

Trait Implementations

impl<T: Send> Queue<T> for LinkedQueue<T>
[src]

Retrieves and removes the head of this queue or returns None if the queue is empty. Read more

Returns true if the underlying data structure does not contain any elements. Read more

impl<T: Send> SyncQueue<T> for LinkedQueue<T>
[src]

Retrieves and removes the head of this queue, waiting if necessary until an element becomes available. Read more

impl<T: Send> Clone for LinkedQueue<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more