logicalXor(_:ordering:)
Perform an atomic logical XOR operation and return the old and new value, applying the specified memory ordering.
Declaration
@discardableResult func logicalXor(_ operand: Bool, ordering: AtomicUpdateOrdering) -> (oldValue: Bool, newValue: Bool)Parameters
- operand:
A boolean value.
- ordering:
The memory ordering to apply on this operation.
Return Value
A tuple with the old value before the operation and the new value after the operation.