Provides a constructor for building cache-line padded Atomic references.
Provides a constructor for building cache-line padded AtomicAny references.
Provides a constructor for building cache-line padded AtomicBoolean references.
Provides a constructor for building cache-line padded AtomicByte references.
Provides a constructor for building cache-line padded AtomicChar references.
Provides a constructor for building cache-line padded AtomicDouble references.
Provides a constructor for building cache-line padded AtomicFloat references.
Provides a constructor for building cache-line padded AtomicInt references.
Provides a constructor for building cache-line padded AtomicLong references.
Provides a constructor for building cache-line padded AtomicNumberAny references.
Provides a constructor for building cache-line padded AtomicShort references.
Constructs an Atomic[T]
reference.
Constructs an Atomic[T]
reference. Based on the initialValue
, it will return the best, most specific
type. E.g. you give it a number, it will return something inheriting from AtomicNumber[T]
. That's why
it takes an AtomicBuilder[T, R]
as an implicit parameter - but worry not about such details as it just works.
is the initial value with which to initialize the Atomic reference
is the builder that helps us to build the best reference possible, based on our initialValue
Atomic classes that are cache-padded for reducing cache contention, until JEP 142 and
@Contended
happens. See:http://mail.openjdk.java.net/pipermail/hotspot-dev/2012-November/007309.html