Atomic boolean. (js) The Atomics and SharedArrayBuffer objects need to be available. Errors will be thrown if this is not the case.
Static methods
staticinlinecompareExchange(this:AtomicInt, expected:Bool, replacement:Bool):Bool
Available on cpp, js, hl
Atomically compares the value of a
with expected
and replaces a
with replacement
if they are equal..
Returns the original value of a
.
staticinlinecompareExchange(this:AtomicBoolean, expected:Bool, replacement:Bool):Bool
Available on jvm
Atomically compares the value of a
with expected
and replaces a
with replacement
if they are equal..
Returns the original value of a
.
staticinlineexchange(this:AtomicInt, value:Bool):Bool
Available on cpp, js, hl
Atomically exchanges a
with value
.
Returns the original value of a
.
staticinlineexchange(this:AtomicBoolean, value:Bool):Bool
Available on jvm
Atomically exchanges a
with value
.
Returns the original value of a
.
staticinlinestore(this:AtomicInt, value:Bool):Bool
Available on cpp, js, hl
Atomically stores value
into a
.
Returns the value that has been stored.
staticinlinestore(this:AtomicBoolean, value:Bool):Bool
Available on jvm
Atomically stores value
into a
.
Returns the value that has been stored.