19 releases

0.9.0 Oct 12, 2020
0.8.2 Feb 22, 2020
0.8.0 Nov 6, 2019
0.7.2 Jul 24, 2019
0.2.0 Nov 29, 2017

#29 in Concurrency

Download history 167671/week @ 2020-06-30 169817/week @ 2020-07-07 170776/week @ 2020-07-14 167418/week @ 2020-07-21 171118/week @ 2020-07-28 167989/week @ 2020-08-04 165700/week @ 2020-08-11 161383/week @ 2020-08-18 164700/week @ 2020-08-25 158745/week @ 2020-09-01 172328/week @ 2020-09-08 166327/week @ 2020-09-15 169889/week @ 2020-09-22 180400/week @ 2020-09-29 185224/week @ 2020-10-06 169617/week @ 2020-10-13

714,510 downloads per month
Used in 3,945 crates (25 directly)

MIT/Apache

260KB
4K SLoC

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.8"

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.

Dependencies