Details
-
Improvement
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
None
-
None
Description
from this:
http://normanmaurer.me/blog/2013/10/28/Lesser-known-concurrent-classes-Part-1/
instead of having an AtomicInteger, we can keep a volatile int and use AtomicIntegerFieldUpdater to atomically update the value