pub fn new_fifo() -> 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::Fifo,
            _marker: PhantomData,
        }
    }
/// Creates a FIFO worker queue.
Creates a FIFO worker queue.
Creates a FIFO worker queue .
pub fn new_fifo() -> 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::Fifo,
            _marker: PhantomData,
        }
    }
pub fn new_fifo ( ) -> 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 :: Fifo , _marker : PhantomData , } }
Creates a FIFO worker queue.
Creates a FIFO worker queue .