The OpenD Programming Language

Atomic.opUnaryRight

Atomically increments or decrements the current value. The operation is read-modify-write operation.

operator ++ performs atomic post-increment. Equivalent to return fetchAdd(1);. operator -- performs atomic post-decrement. Equivalent to return fetchSub(1);.

struct Atomic(T)
pure nothrow @nogc
T
opUnaryRight
(
string op
)
()

Return Value

Type: T

The atomic value BEFORE the operation

Meta