System::Threading::Interlocked::ExchangeAdd 方法
Interlocked::ExchangeAdd(int32_t&, int32_t) method
通过 exchange-add 过程原子递增值。
static int32_t System::Threading::Interlocked::ExchangeAdd(int32_t &location1, int32_t value)
| 参数 | 类型 | 描述 |
|---|---|---|
| location1 | int32_t& | 用于递增的变量引用。 |
| 值 | int32_t | 要添加到 location1 的值。 |
ReturnValue
变量在递增后立即得到的值。
另见
- Class Interlocked
- Namespace System::Threading
- Library Aspose.Font for C++
Interlocked::ExchangeAdd(int64_t&, int64_t) method
通过 exchange-add 过程原子递增值。
static int64_t System::Threading::Interlocked::ExchangeAdd(int64_t &location1, int64_t value)
| 参数 | 类型 | 描述 |
|---|---|---|
| location1 | int64_t& | 用于递增的变量引用。 |
| 值 | int64_t | 要添加到 location1 的值。 |
ReturnValue
变量在递增后立即得到的值。
另见
- Class Interlocked
- Namespace System::Threading
- Library Aspose.Font for C++