- i
- the index
- expect
- the expected value
- update
- the new value
Documentation for this section has not yet been entered.
Atomically sets the element at position i to the given updated value if the current value == the expected value.
, so is only rarely an appropriate alternative to compareAndSet.