Crates.io | wfqueue |
lib.rs | wfqueue |
version | 0.2.1 |
source | src |
created_at | 2020-06-21 07:57:36.18433 |
updated_at | 2020-09-02 04:32:02.73705 |
description | FAA-based wait-free bounded queue, and 0-unsafe. |
homepage | https://github.com/quininer/wfqueue |
repository | https://github.com/quininer/wfqueue |
max_upload_size | |
id | 256244 |
size | 28,903 |
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);