Struct canal::mpmc::MutexLinkedList
[−]
[src]
pub struct MutexLinkedList<T> { // some fields omitted }
A mutex-locked List that is safe for push/pop on multiple threads.
Methods
impl<T> MutexLinkedList<T>
fn new() -> MutexLinkedList<T>
Create a new MutexLinkedList.
impl<T: Send> MutexLinkedList<T>
fn push(&self, value: T)
Push a value onto queue.
fn pop(&self) -> Option<T>
Pop a value off the queue.
If the queue is empty, None is returned.