[concurrency-interest] increment()/decrement() methods on atomicInteger ?

Yechiel Feffer yechielf at gigaspaces.com
Mon May 30 09:48:19 EDT 2005

In some cases it is desirable to increment/decrement an atomic integer,
without getting the result (for example- in a set implementation when you
add/remove an element (updating an atomic "size" which is just a
"recommendation").  Would'nt it be helpful to add
increment/decrement methods, which donot return a value ?  Assuming  that an
atomic increment can be delegated to the 
processor level (at least for volatile) - this can save the CAS retry cycle

Yechiel Fefer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/attachments/20050530/13b48c42/attachment.htm

More information about the Concurrency-interest mailing list