commit | a0cb8c9fe3cc0aec7d631bfc77d2ebc6e86cca91 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Sat Oct 09 05:05:08 2021 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Sat Oct 09 05:05:08 2021 +0000 |
tree | 561e3a4b92cd59e668483e633826cc38a8f3be38 | |
parent | 10391475797d5dc30a57b8f71fe97cdeb1e2986e [diff] | |
parent | 36b36e2055cecc2598584bd99c821feacb4189f7 [diff] |
Snap for 7809064 from 36b36e2055cecc2598584bd99c821feacb4189f7 to tm-release Change-Id: I30bca75168999f483485f3d9e85a0c7dce594129
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.