commit | cd737f0786be9d6cea257f401f5200c82c3047db | [log] [tgz] |
---|---|---|
author | Daniel Norman <danielnorman@google.com> | Thu Mar 17 15:56:19 2022 -0700 |
committer | Daniel Norman <danielnorman@google.com> | Thu Mar 17 16:07:00 2022 -0700 |
tree | 662053bae03d524515a3e979a5d9bf693adf4976 | |
parent | 51734e7cef1122f4e07e4eaff135db7cda2838bc [diff] | |
parent | 3f75b67f7e89a7c2bd8760e4255942ba3609feb6 [diff] |
Merge TP1A.220310.002 Change-Id: Ia1932b3ca21e28d36c98a83943811450fbd788e5
This crate provides concurrent queues that can be shared among threads:
ArrayQueue
, a bounded MPMC queue that allocates a fixed-capacity buffer on construction.SegQueue
, an unbounded MPMC queue that allocates small buffers, segments, on demand.Everything in this crate can be used in no_std
environments, provided that alloc
feature is enabled.
Add this to your Cargo.toml
:
[dependencies] crossbeam-queue = "0.3"
Crossbeam Queue supports stable Rust releases going back at least six months, and every time the minimum supported Rust version is increased, a new minor version is released. Currently, the minimum supported Rust version is 1.36.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.