Crates.io | uchan |
lib.rs | uchan |
version | 0.1.4 |
source | src |
created_at | 2022-05-25 19:32:31.087396 |
updated_at | 2022-11-05 16:05:51.606848 |
description | Multi-producer single-consumer channel for message passing |
homepage | |
repository | https://github.com/kprotty/uchan |
max_upload_size | |
id | 593718 |
size | 50,081 |
Small, scalable, unbounded, mpsc channel.
This is (almost) a drop-in replacement for std::sync::mpsc
with a focus on being lock-free and scalable for both producers and consumers.
It also supports being used as #![no_std]
, in which the caller provides a trait used to block and unblock a thread, with the queue implementing everything else from there.
[dependencies]
uchan = "0.1.4"
cd benchmark
cargo run --release
For adding custom channels to the benchmark, see benchmark/src/queues.rs
.
uchan is licensed under MIT (http://opensource.org/licenses/MIT)