1 unstable release
0.1.0 | Nov 12, 2021 |
---|
#1126 in Concurrency
Used in hv-alchemy
17KB
318 lines
Heavy Atom - convenient atomic pointer abstractions based on the atom
crate
A hard fork of the atom
crate which fixes some soundness
issues and adds (requiring nightly features) const
-initializers for Atom
and AtomSetOnce
.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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.
lib.rs
:
no_std
port of the atom
crate.
Notable changes:
- Atomic orderings fixed w.r.t. atom operations;
Relaxed
should never be allowed in the first place. Atom::empty()
andAtomSetOnce::empty()
are allowed to be const (requires theconst_fn_fn_ptr_basics
feature. This crate requires nightly rust, 1.58 up.)