This Queue uses the Scalable-Circular-Queue implementation provided in the Paper.
// Create the Queue let (rx, tx) = scq::queue::<u64>(10); // Insert an Item into the Queue assert_eq!(Ok(()), tx.try_enqueue(10)); // Dequeue the previously inserted Item assert_eq!(Ok(10), rx.try_dequeue());
The receiving Half for a SCQ based MPMC-Queue
The sending Half for a SCQ based MPMC-Queue
Creates a new Queue with the given Capacity.