3 releases

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

#19 in #mpmc

MIT license

14KB
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

~100KB