/// Creates a LIFO worker queue.
///
/// Tasks are pushed and popped from the same end.
///
/// # Examples
///
/// ```
/// use crossbeam_deque::Worker;
///
/// let w = Worker::<i32>::new_lifo();
/// ```
Creates a LIFO worker queue.
Tasks are pushed and popped from the same end.
Creates a LIFO worker queue . Tasks are pushed and popped from the same end .
pub fn new_lifo() -> Worker<T> {
        let buffer = Buffer::alloc(MIN_CAP);
        let inner = Arc::new(CachePadded::new(Inner {
            front: AtomicIsize::new(0),
            back: AtomicIsize::new(0),
            buffer: CachePadded::new(Atomic::new(buffer)),
        }));
        Worker {
            inner,
            buffer: Cell::new(buffer),
            flavor: Flavor::Lifo,
            _marker: PhantomData,
        }
    }
pub fn new_lifo ( ) -> Worker < T > { let buffer = Buffer :: alloc ( MIN_CAP ) ; let inner = Arc :: new ( CachePadded :: new ( Inner { front : AtomicIsize :: new ( 0 ) , back : AtomicIsize :: new ( 0 ) , buffer : CachePadded :: new ( Atomic :: new ( buffer ) ) , } ) ) ; Worker { inner , buffer : Cell :: new ( buffer ) , flavor : Flavor :: Lifo , _marker : PhantomData , } }
Creates a LIFO worker queue.
Creates a LIFO worker queue .
examples
```
use crossbeam_deque::Worker.


` ` ` use crossbeam_deque :: Worker .