tag | 185ad8569a08e0613259af06c4aef7532e2fb031 | |
---|---|---|
tagger | Xin Li <delphij@google.com> | Wed Apr 24 20:16:31 2024 -0700 |
object | 38996fd597e6da596aaed4f0ba3b0414fd9fab22 |
aml_odp_341610000 (11382236,com.google.android.go.ondevicepersonalization,com.google.android.ondevicepersonalization)
commit | 38996fd597e6da596aaed4f0ba3b0414fd9fab22 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 07:12:38 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 07:12:38 2023 +0000 |
tree | 5dde593726f7dcc1fcedcc1ed4b1d54d3743b0bb | |
parent | 2bed517f5b256e4540aa7b7966c9e5e5c2e915d6 [diff] | |
parent | bc312a33af99a4ca364a29a732e04f466498e29b [diff] |
Snap for 10453938 from bc312a33af99a4ca364a29a732e04f466498e29b to mainline-odp-release Change-Id: Ibfd8a6c2c5a2142550bdf4a9132b4a2dab0e229d
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.38.
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.