integer-atomics 1.0.2

This crate allows you to compile code that needs the unstable integer atomics types (Atomic{U,I}{8,16,32,64}) with the stable compiler.
Documentation
  • Coverage
  • 11.11%
    1 out of 9 items documented0 out of 0 items with examples
  • Size
  • Source code size: 9.85 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.31 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • main--/rust-integer-atomics
    1 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • main--

This crate allows you to compile code that needs the unstable integer atomics types (Atomic{U,I}{8,16,32,64}) with the stable compiler.

If the nightly feature is enabled, it simply re-exports these types from std::sync::atomic.

Otherwise, they are emulated with the existing stable AtomicUsize and compare-exchange loops. Because of that, the Atomic{U,I}64 types are only available on 64-bit platforms. Also, this is obviously much slower than real atomics. This is only a stopgap solution until those are finally stabilized.

This crate has no documentation as these types are documented within the standard library docs.