98 |
|
* other calls to {@code compareAndSet} and {@code set}, but not |
99 |
|
* necessarily with respect to other changes in the field. |
100 |
|
* |
101 |
< |
* <p>May <a href="package-summary.html#Spurious">fail spuriously</a> |
102 |
< |
* and does not provide ordering guarantees, so is only rarely an |
103 |
< |
* appropriate alternative to {@code compareAndSet}. |
101 |
> |
* <p><a href="package-summary.html#weakCompareAndSet">May fail |
102 |
> |
* spuriously and does not provide ordering guarantees</a>, so is |
103 |
> |
* only rarely an appropriate alternative to {@code compareAndSet}. |
104 |
|
* |
105 |
|
* @param obj An object whose field to conditionally set |
106 |
|
* @param expect the expected value |