Merge fcd0580d5e0c10e5715076f2463a1fcf54c8ee15 on remote branch

Change-Id: I977201e57fd8466948a65a4264c3281038fa75c1
tree: 662053bae03d524515a3e979a5d9bf693adf4976
  1. src/
  2. tests/
  3. .cargo_vcs_info.json
  4. Android.bp
  5. build.rs
  6. Cargo.toml
  7. Cargo.toml.orig
  8. cargo2android.json
  9. CHANGELOG.md
  10. LICENSE-APACHE
  11. LICENSE-MIT
  12. METADATA
  13. MODULE_LICENSE_APACHE2
  14. no_atomic.rs
  15. OWNERS
  16. README.md
  17. TEST_MAPPING
README.md

Crossbeam Queue

Build Status License Cargo Documentation Rust 1.36+ chat

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.

Usage

Add this to your Cargo.toml:

[dependencies]
crossbeam-queue = "0.3"

Compatibility

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.

License

Licensed under either of

at your option.

Contribution

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.