Exchange exchangeWith with the memory referenced by here. This operation is both lock-free and atomic.
The address of the destination variable.
The value to exchange.
The value held previously by here.
See Implementation
Exchange exchangeWith with the memory referenced by here. This operation is both lock-free and atomic.