about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2019-01-07 12:41:55 -0800
committerAlex Crichton <alex@alexcrichton.com>2019-01-25 11:48:10 -0800
commit14b36fb15a49bc2d38964ec5bd93ca26adda0486 (patch)
treea5797cf2738ee05f8beddb7d21b45cde0b86a335 /src/rustllvm/RustWrapper.cpp
parent0b1669d96cee9dec9035a50fdf0a967a68605f98 (diff)
downloadrust-14b36fb15a49bc2d38964ec5bd93ca26adda0486.tar.gz
rust-14b36fb15a49bc2d38964ec5bd93ca26adda0486.zip
std: Stabilize fixed-width integer atomics
This commit stabilizes the `Atomic{I,U}{8,16,32,64}` APIs in the
`std::sync::atomic` and `core::sync::atomic` modules. Proposed in #56753
and tracked in #32976 this feature has been unstable for quite some time
and is hopefully ready to go over the finish line now!

The API is being stabilized as-is. The API of `AtomicU8` and friends
mirrors that of `AtomicUsize`. A list of changes made here are:

* A portability documentation section has been added to describe the
  current state of affairs.
* Emulation of smaller-size atomics with larger-size atomics has been
  documented.
* As an added bonus, `ATOMIC_*_INIT` is now scheduled for deprecation
  across the board in 1.34.0 now that `const` functions can be invoked
  in statics.

Note that the 128-bit atomic types are omitted from this stabilization
explicitly. They have far less platform support than the other atomic
types, and will likely require further discussion about their best
location.

Closes #32976
Closes #56753
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions