Cyclic atomic integer variable.
new (max:Int)
inline get ():Int
Returns the variable value.
Returns:
Variable value.
inline increase (?val:Int):Int
Increases the variable value. If the new value is >= maximum value, it is set to 0.
Parameters:
val
Value to add.
New variable value.
inline set (val:Int):Void
Sets the variable value.
New value.