[concurrency-interest] Suggestion: .hardGet() for atomic variables

Raph Frank raphfrk at gmail.com
Thu Jan 19 16:40:09 EST 2012

On Thu, Jan 19, 2012 at 9:25 PM, Ruslan Cheremin <cheremin at gmail.com> wrote:
> In your example of optimistic lock, if you would chang second .get()
> in optimistic read to .getAndAdd(0) -- it seems for me that your lock
> will be ok.

Yeah that is what I was hoping for.

More information about the Concurrency-interest mailing list