## Interlocked::Add(int32_t\&, int32_t) method


原子递增值。

```cpp
static int32_t System::Threading::Interlocked::Add(int32_t &location1, int32_t value)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| location1 | int32_t\& | 用于递增的变量引用。 |
| 值 | int32_t | 要添加到 **location1** 的值。 |

### ReturnValue

变量在递增后立即得到的值。

## 另见

* Class [Interlocked](../)
* Namespace [System::Threading](../../)
* Library [Aspose.Font for C++](../../../)
## Interlocked::Add(int64_t\&, int64_t) method


原子递增值。

```cpp
static int64_t System::Threading::Interlocked::Add(int64_t &location1, int64_t value)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| location1 | int64_t\& | 用于递增的变量引用。 |
| 值 | int64_t | 要添加到 **location1** 的值。 |

### ReturnValue

变量在递增后立即得到的值。

## 另见

* Class [Interlocked](../)
* Namespace [System::Threading](../../)
* Library [Aspose.Font for C++](../../../)
