Version 5
This release has major changes to the CAtomics
package, in that it no longer uses swift-style function names, but uses (once more) C-style names: it switches from using the SWIFT_NAME
macro to __attribute__((overloadable))
. This allows all the necessary changes to have a similar shape, as
AtomicInt.load(_ order: LoadMemoryOrder)
becomes
CAtomicsLoad(_ atomic: UnsafeMutablePointer<AtomicInt>, order: LoadMemoryOrder)
.
The Swift-style module is renamed to SwiftAtomics
, which is less presumptuous than just Atomics
.
(Still presumptuous, but the standard library is unlikely to ever have a module named SwiftAtomics
.)
Finally, tagged pointers are now usable from the SwiftAtomics
module, after having been usable from CAtomics
since 4.4.0
.