0-unsafe Wait-free Queue
FAA-based wait-free bounded queue, and 0-unsafe.
Usage
use wfqueue::WfQueue;
let queue = WfQueue::new(3);
queue.push(Box::new(0x42)).unwrap();
let output = queue.pop().unwrap();
assert_eq!(*output, 0x42);
FAA-based wait-free bounded queue, and 0-unsafe.
Homepage Cargo Rust Documentation Download
FAA-based wait-free bounded queue, and 0-unsafe.
use wfqueue::WfQueue;
let queue = WfQueue::new(3);
queue.push(Box::new(0x42)).unwrap();
let output = queue.pop().unwrap();
assert_eq!(*output, 0x42);