Atomically sets the value to newValue
if the current value,
referred to as the witness value, == expectedValue
,
with memory effects as specified by
VarHandle.compareAndExchange
.
expectedValue | the expected value | |
newValue | the new value |
Diagram: AtomicTypes