wrappingSubtract(_:ordering:)
Perform an atomic wrapping subtract operation and return the old and new value, applying the specified memory ordering.
- iOS
- 18.0+
- macOS
- 15.0+
- tvOS
- 18.0+
- visionOS
- 2.0+
- watchOS
- 11.0+
@discardableResult func wrappingSubtract(_ operand: Int64, ordering: AtomicUpdateOrdering) -> (oldValue: Int64, newValue: Int64)
Parameters
Returns
A tuple containing the original value before the operation and the new value after the operation.