Atomic integer. (js) The Atomics and SharedArrayBuffer objects need to be available. Errors will be thrown if this is not the case.
Static methods
staticand(this:AtomicIntData, b:Int):Int
Atomically computes the bitwise and of a and b and stores it in a.
Returns the original value of a.
staticcompareExchange(this:AtomicIntData, expected:Int, replacement:Int):Int
Atomically compares the value of a with expected and replaces a with replacement if they are equal..
Returns the original value of a.
staticexchange(this:AtomicIntData, value:Int):Int
Atomically exchanges a with value.
Returns the original value of a.
staticor(this:AtomicIntData, b:Int):Int
Atomically computes the bitwise or of a and b and stores it in a.
Returns the original value of a.
staticstore(this:AtomicIntData, value:Int):Int
Atomically stores value into a.
Returns the value that has been stored.