System::Threading::Interlocked::Increment method

Interlocked::Increment(int32_t&) method

Increments value atomically.

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

ReturnValue

Value of variable right after it was incremented.

See Also

Interlocked::Increment(int64_t&) method

Increments value atomically.

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

ReturnValue

Value of variable right after it was incremented.

See Also