commit | 03b3efcf6eafccb124d4cbe6005d9decbbfd53c8 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue May 14 23:08:51 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue May 14 23:08:51 2024 +0000 |
tree | 6d3c9f90262cf336525c47415cf7440f4c44b0a2 | |
parent | 8e7f27fbed08cf1abc335a0d4407f6e55573aa4f [diff] | |
parent | 85fa24fcaa3ae8f80ea857a3c43594b06042e158 [diff] |
Snap for 11841552 from 85fa24fcaa3ae8f80ea857a3c43594b06042e158 to sdk-release Change-Id: Id18a90155763482e11bafe6aedd2064ad43f28ea
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.60.
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.