System::Threading::Interlocked::Decrement method

Interlocked::Decrement(int32_t&) method

Decrements value atomically.

static int32_t System::Threading::Interlocked::Decrement(int32_t &location)
ParameterTypeDescription
locationint32_t&Variable reference to decrement.

ReturnValue

Value of variable right after it was decremented.

See Also

Interlocked::Decrement(int64_t&) method

Decrements value atomically.

static int64_t System::Threading::Interlocked::Decrement(int64_t &location)
ParameterTypeDescription
locationint64_t&Variable reference to decrement.

ReturnValue

Value of variable right after it was decremented.

See Also