about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-01-26 09:46:10 +0000
committerbors <bors@rust-lang.org>2019-01-26 09:46:10 +0000
commitf95834b2a92aa1571d6339d50a34616515773f1c (patch)
treee09921a5aab6c4cf3002d35f80ae5e8398a31163 /src/rustllvm/RustWrapper.cpp
parent42eb5ff4042236ec3635035332e059afa7d63f9d (diff)
parent14b36fb15a49bc2d38964ec5bd93ca26adda0486 (diff)
downloadrust-f95834b2a92aa1571d6339d50a34616515773f1c.tar.gz
rust-f95834b2a92aa1571d6339d50a34616515773f1c.zip
Auto merge of #57425 - alexcrichton:stabilize-atomics, r=sfackler
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