compareExchange(x, y, z)
The values of x and y are compared. If they agree, then true is returned and the value of z is stored in x. Otherwise, false is returned. This operation occurs atomically and is thread safe.
|
|
|
|
|
The object compareExchange 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:261:0.