зеркало из https://github.com/mozilla/gecko-dev.git
b93bf873ba | ||
---|---|---|
.. | ||
benches | ||
examples | ||
src | ||
.cargo-checksum.json | ||
CHANGELOG.md | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |
README.md
Epoch-based garbage collection
This crate provides epoch-based garbage collection for use in concurrent data structures.
If a thread removes a node from a concurrent data structure, other threads may still have pointers to that node, so it cannot be immediately destructed. Epoch GC allows deferring destruction until it becomes safe to do so.
Usage
Add this to your Cargo.toml
:
[dependencies]
crossbeam-epoch = "0.4"
Next, add this to your crate:
extern crate crossbeam_epoch as epoch;
License
Licensed under the terms of MIT license and the Apache License (Version 2.0).
See LICENSE-MIT and LICENSE-APACHE for details.