Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std: Stabilize fixed-width integer atomics #57425

Merged
merged 1 commit into from
Jan 26, 2019

Commits on Jan 25, 2019

  1. 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 rust-lang#56753
    and tracked in rust-lang#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 rust-lang#32976
    Closes rust-lang#56753
    alexcrichton committed Jan 25, 2019
    Configuration menu
    Copy the full SHA
    14b36fb View commit details
    Browse the repository at this point in the history