Snap for 7266202 from c96afd9734396f433b77c2f03ebb7f772a6d61f6 to sc-v2-release

Change-Id: I8a0e5e6b7745e2c7b8608a600b661746d7979612
tree: 8a77ea0f3a6051e5e0f59ab1e914dc60f550831a
  1. benches/
  2. examples/
  3. src/
  4. .cargo_vcs_info.json
  5. Android.bp
  6. Cargo.lock
  7. Cargo.toml
  8. Cargo.toml.orig
  9. CHANGELOG.md
  10. LICENSE-APACHE
  11. LICENSE-MIT
  12. METADATA
  13. MODULE_LICENSE_APACHE2
  14. OWNERS
  15. README.md
  16. TEST_MAPPING
README.md

Crossbeam Epoch

Build Status License Cargo Documentation Rust 1.36+ chat

This crate provides epoch-based garbage collection for building concurrent data structures.

When a thread removes an object from a concurrent data structure, other threads may be still using pointers to it at the same time, so it cannot be destroyed immediately. Epoch-based GC is an efficient mechanism for deferring destruction of shared objects until no pointers to them can exist.

Everything in this crate except the global GC can be used in no_std environments, provided that features alloc and nightly are enabled.

Usage

Add this to your Cargo.toml:

[dependencies]
crossbeam-epoch = "0.9"

Compatibility

Crossbeam Epoch 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.