Constructs an AtomicInt reference.
Constructs an AtomicInt reference.
is the initial value with which to initialize the atomic
Constructs an AtomicInt reference, applying the provided PaddingStrategy in order to counter the "false sharing" problem.
Constructs an AtomicInt reference, applying the provided PaddingStrategy in order to counter the "false sharing" problem.
Note that for Scala.js we aren't applying any padding, as it doesn't make much sense, since Javascript execution is single threaded, but this builder is provided for syntax compatibility anyway across the JVM and Javascript and we never know how Javascript engines will evolve.
is the initial value with which to initialize the atomic
is the PaddingStrategy to apply