pub(super) fn local<T: 'static>() -> (Steal<T>, Local<T>) {
    let mut buffer = Vec::with_capacity(LOCAL_QUEUE_CAPACITY);

    for _ in 0..LOCAL_QUEUE_CAPACITY {
        buffer.push(UnsafeCell::new(MaybeUninit::uninit()));
    }

    let inner = Arc::new(Inner {
        head: AtomicU32::new(0),
        tail: AtomicU16::new(0),
        buffer: buffer.into(),
    });

    let local = Local {
        inner: inner.clone(),
    };

    let remote = Steal(inner);

    (remote, local)
}
/// Create a new local run-queue
Create a new local run-queue
Create a new local run - queue
pub(super) fn local<T: 'static>() -> (Steal<T>, Local<T>) {
    let mut buffer = Vec::with_capacity(LOCAL_QUEUE_CAPACITY);
    for _ in 0..LOCAL_QUEUE_CAPACITY {
        buffer.push(UnsafeCell::new(MaybeUninit::uninit()));
    }
    let inner = Arc::new(Inner {
        head: AtomicU32::new(0),
        tail: AtomicU16::new(0),
        buffer: buffer.into(),
    });
    let local = Local {
        inner: inner.clone(),
    };
    let remote = Steal(inner);
    (remote, local)
}
pub ( super ) fn local < T : ' static > ( ) -> ( Steal < T > , Local < T > ) { let mut buffer = Vec :: with_capacity ( LOCAL_QUEUE_CAPACITY ) ; for _ in 0 .. LOCAL_QUEUE_CAPACITY { buffer . push ( UnsafeCell :: new ( MaybeUninit :: uninit ( ) ) ) ; } let inner = Arc :: new ( Inner { head : AtomicU32 :: new ( 0 ) , tail : AtomicU16 :: new ( 0 ) , buffer : buffer . into ( ) , } ) ; let local = Local { inner : inner . clone ( ) , } ; let remote = Steal ( inner ) ; ( remote , local ) }
Create a new local run-queue
Create a new local run - queue