#lock-free #lock-free-queue #queue #mpmc #mpmc-queue

faa_array_queue

Fetch-And-Add Array Queue implementation for Rust

3 releases

0.1.2 Jan 5, 2021
0.1.1 Jan 5, 2021
0.1.0 Jan 5, 2021

#1270 in Concurrency

MIT license

15KB
200 lines

Latest version Documentation Lines of code MIT

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