The OpenD Programming Language

Atomic.opUnary

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

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

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

Return Value

Type: T

The atomic value AFTER the operation

Meta