Atomic integer variable.

Constructor

new ()

Methods

inline decrease (?val:Int):Int

Decreases the variable value and returns it.

Parameters:

val

Value to subtract.

Returns:

Variable value after decrement.

inline get ():Int

Returns the variable value.

Returns:

Variable value.

inline increase (?val:Int):Int

Increases the variable value.

Parameters:

val

Value to add.

Returns:

Variable value after increment.

inline set (val:Int):Void

Sets the variable value.

Parameters:

val

New value.