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.
The source of this document is in /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/Macaulay2Doc/doc_atomic.m2:233:0.