System::Threading::Interlocked::Add method

Interlocked::Add(int32_t&, int32_t) method

Increases value atomically.

static int32_t System::Threading::Interlocked::Add(int32_t &location1, int32_t value)
ParameterTypeDescription
location1int32_t&Variable reference to increase.
valueint32_tValue to add to location1.

ReturnValue

Value of variable right after it was increased.

See Also

Interlocked::Add(int64_t&, int64_t) method

Increases value atomically.

static int64_t System::Threading::Interlocked::Add(int64_t &location1, int64_t value)
ParameterTypeDescription
location1int64_t&Variable reference to increase.
valueint64_tValue to add to location1.

ReturnValue

Value of variable right after it was increased.

See Also