Increment()

Interlocked::Increment(int32_t&) method

Increments value atomically.

static int32_t System::Threading::Interlocked::Increment(int32_t &location)

Arguments

ParameterTypeDescription
locationint32_t&Variable reference to increment.

Return Value

Value of variable right after it was incremented.

Interlocked::Increment(int64_t&) method

Increments value atomically.

static int64_t System::Threading::Interlocked::Increment(int64_t &location)

Arguments

ParameterTypeDescription
locationint64_t&Variable reference to increment.

Return Value

Value of variable right after it was incremented.

See Also