8001666: Add updateAndGet, getAndUpdate, getAndAccumulate, accumulateAndGet methods to AtomicXXX (original) (raw)

Chris Hegarty chris.hegarty at oracle.com
Fri Jan 11 15:25:15 UTC 2013


This proposal is to add lambda-compatible atomics and accumulators to the ActomicXXX classes.

Webrev: http://cr.openjdk.java.net/~chegar/8001666/ver.00/webrev/ SpecDiff:

http://cr.openjdk.java.net/~chegar/8001666/ver.00/specdiff/java/util/concurrent/atomic/package-summary.html

This changes come from Doug, with the exception of the AtomicXXXArray classes.

Doug, You have not added the equivalent atomics and accumulators the Array classes. Was this intentional? I no reason why this shouldn't be done, so went ahead and did it.

-Chris.



More information about the core-libs-dev mailing list