#atomic #mpmc #queue #concurrency #thread

atomic_mpmc

Atomic Multi-Producer Multi-Consumer Queue

2 unstable releases

Uses new Rust 2021

0.2.0 May 14, 2022
0.1.2 May 13, 2022
0.1.1 May 13, 2022
0.1.0 May 13, 2022

#22 in #threading

MIT/Apache

21KB
470 lines

atomic_mpmc

Latest Version Rust Documentation

This library provides a concurrent, atomic, multi-producer, multi-consumer channel.


lib.rs:

Fast, atomic, multi-producer, multi-consumer queue.

It which supports multiple producers and consumers, even from different threads. It functions as a FIFO queue in a fixed circular buffer. The [Sender] and [Receiver] types are used to send and receive values, and they implement [Send], [Sync], and [Clone].

The [channel] function is used to create a channel.

Dependencies

~1.1–6MB
~101K SLoC