Struct deque::Worker
[−]
[src]
pub struct Worker<T: Send> { /* fields omitted */ }
Worker half of the work-stealing deque. This worker has exclusive access to
one side of the deque, and uses push
and pop
method to manipulate it.
There may only be one worker per deque.
Methods
impl<T: Send> Worker<T>
[src]
fn push(&self, t: T)
Pushes data onto the front of this work queue.
fn pop(&self) -> Option<T>
Pops data off the front of the work queue, returning None
on an empty
queue.