Atomically sets the value to the given updated value
if the current value
==
the expected value.
May fail spuriously
and does not provide ordering guarantees, so is only rarely an
appropriate alternative to compareAndSet
.
Returns:
true if successful.
Parameters:
- expect - the expected value
- update - the new value