AtomicInt

package cpp

from Int to Int

Available on cpp

Static methods

staticatomicDec(ioValue:Pointer<AtomicInt>):Int

Returns value before decrement.

staticatomicInc(ioValue:Pointer<AtomicInt>):Int

Returns value before increment.

staticexchangeIf(ioValue:Pointer<AtomicInt>, test:Int, newVal:Int):Bool

Returns true if exchange took place.