commit | 3da5b2acceb233a2220a28c84bcef1b2ee9cd771 | [log] [tgz] |
---|---|---|
author | Scott Lobdell <slobdell@google.com> | Tue Nov 23 14:01:24 2021 +0000 |
committer | Scott Lobdell <slobdell@google.com> | Tue Nov 23 14:15:53 2021 +0000 |
tree | 561e3a4b92cd59e668483e633826cc38a8f3be38 | |
parent | a43ea63b025e02db0a870a16ba78c6ca6cc07934 [diff] | |
parent | a0cb8c9fe3cc0aec7d631bfc77d2ebc6e86cca91 [diff] |
Merge TP1A.211013.002 Change-Id: Id8bf193516d53a8d6be4cbeb3b4dc7628bd354d9
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.