Crates.io | faa_array_queue |
lib.rs | faa_array_queue |
version | 0.1.2 |
source | src |
created_at | 2021-01-05 06:58:11.296566 |
updated_at | 2021-01-05 07:03:33.083485 |
description | Fetch-And-Add Array Queue implementation for Rust. |
homepage | https://github.com/junkerjorg/faa_array_queue |
repository | https://github.com/junkerjorg/faa_array_queue |
max_upload_size | |
id | 331949 |
size | 15,158 |
Fetch-And-Add Array Queue (a lock free mpmc queue) implementation for Rust.
Add these lines to your Cargo.toml
:
[dependencies]
faa_array_queue = "0.1"
and use the queue like this:
use faa_array_queue::FaaArrayQueue;
let queue = FaaArrayQueue::<usize>::default();
queue.enqueue(1337);
assert!(queue.dequeue().unwrap() == 1337);
Licensed under MIT license