Skip to content

Version 5

Compare
Choose a tag to compare
@glessard glessard released this 07 May 16:53
c88d92b

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.