View source
abstract AtomicBool(AtomicBoolData)
package haxe.atomic
Available on hl, js, jvm, cpp, macro
Atomic boolean. (js) The Atomics and SharedArrayBuffer objects need to be available. Errors will be thrown if this is not the case.
Static methods
staticcompareExchange(this:AtomicBoolData, expected:Bool, replacement:Bool):Bool
Atomically compares the value of a with expected and replaces a with replacement if they are equal..
Returns the original value of a.