exchange(x, y)
The value of y is stored in x and the original value of x is returned. This operation occurs atomically and is thread safe.
|
|
|
The object exchange is a method function.