2015-09-17 10:55 GMT-07:00 Vladimir Ozerov <voze...@gridgain.com>:

This is not something weird, but rather how things work everywhere except
> of Java. getAndUpdate() is not what we need, because it is a CAS loop, not
> CAS.
>

This is an implementation detail. For a distributed data structure it will
never be a CAS loop because we always acquire a lock for the corresponding
cache entry and then run an entry processor. Agree with Sergi, I would
rather name it getAndUpdate to be consistent with java AtomicLong since
this is the class which IgniteAtomicLong was mimicking in the first place.

Reply via email to