3 releases
0.1.2 | Jan 5, 2021 |
---|---|
0.1.1 | Jan 5, 2021 |
0.1.0 | Jan 5, 2021 |
#1270 in Concurrency
15KB
200 lines
faa_array_queue
Fetch-And-Add Array Queue (a lock free mpmc queue) implementation for Rust.
Usage
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);
License
Licensed under MIT license
Dependencies
~81–290KB