Método System::Threading::Interlocked::Exchange
Contenido
[
Ocultar
]Interlocked::Exchange(T&, T) method
Intercambia el valor en la variable: almacena el nuevo valor y devuelve el valor que la variable tenía inmediatamente antes de almacenarlo.
template<typename T> static std::enable_if<IsSupportedInt<T>, T>::type System::Threading::Interlocked::Exchange(T &location1, T value)
| Parámetro | Descripción |
|---|---|
| T | Tipo de variable. |
| Parámetro | Tipo | Descripción |
|---|---|---|
| location1 | T& | Referencia a la variable para cambiar. |
| value | T | Valor a almacenar. |
ReturnValue
Valor de la variable justo antes de haber sido cambiado.
Ver también
- Class Interlocked
- Namespace System::Threading
- Library Aspose.Page for C++
Interlocked::Exchange(T&, T) method
Intercambia el valor en la variable: almacena el nuevo valor y devuelve el valor que la variable tenía inmediatamente antes de almacenarlo. No implementado.
template<typename T> static std::enable_if<!IsSupportedInt<T>, T>::type System::Threading::Interlocked::Exchange(T &location1, T value)
| Parámetro | Descripción |
|---|---|
| T | Tipo de variable. |
| Parámetro | Tipo | Descripción |
|---|---|---|
| location1 | T& | Referencia a la variable para cambiar. |
| value | T | Valor a almacenar. |
ReturnValue
Valor de la variable justo antes de haber sido cambiado.
Ver también
- Class Interlocked
- Namespace System::Threading
- Library Aspose.Page for C++