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


Ökar värdet atomärt via exchange-add-procedur.

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


| Parameter | Type | Beskrivning |
| --- | --- | --- |
| location1 | int32_t\& | Variabelreferens att öka. |
| value | int32_t | Värde att lägga till **location1**. |

### ReturnValue

Värde på variabeln precis efter att den ökades.

## Se även

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


Ökar värdet atomärt via exchange-add-procedur.

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


| Parameter | Type | Beskrivning |
| --- | --- | --- |
| location1 | int64_t\& | Variabelreferens att öka. |
| value | int64_t | Värde att lägga till **location1**. |

### ReturnValue

Värde på variabeln precis efter att den ökades.

## Se även

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