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 hl, js, cpp, cs
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 java
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 hl, js, cpp, cs
Atomically exchanges a with value.
Returns the original value of a.
staticinlineexchange(this:AtomicBoolean, value:Bool):Bool
Available on java
Atomically exchanges a with value.
Returns the original value of a.
staticinlinestore(this:AtomicInt, value:Bool):Bool
Available on hl, js, cpp, cs
Atomically stores value into a.
Returns the value that has been stored.
staticinlinestore(this:AtomicBoolean, value:Bool):Bool
Available on java
Atomically stores value into a.
Returns the value that has been stored.