Move choice between weak and strong CAS out of the C parameter list in CAtomics
-
In the
CAtomicsmodule, all types have directCompareAndExchangeWeakandCompareAndExchangeStrongfunctions rather than a single function with a parameter selecting between strong and weak. -
The old version of
CompareAndExchangewith aCASTypeparameter still exists, but forwards to either of the other two, making it objectively worse. -
SwiftAtomicsinternally adapts to the above, but is otherwise unchanged.