std::atomic::load
De cppreference.com
|
|
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
T load( memory_order = std::memory_order_seq_cst ) const;
|
(desde C++11) | |
T load( memory_order = std::memory_order_seq_cst ) const volatile;
|
(desde C++11) | |
Atómicamente cargas y devuelve el valor actual de la variable atómica. Memoria se ve afectada de acuerdo con el valor de
memory_order .Original:
Atomically loads and returns the current value of the atomic variable. Memory is affected according to the value of
memory_order.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
memory_order debe ser uno de std::memory_order_relaxed, std::memory_order_consume, std::memory_order_acquire o std::memory_order_seq_cst. De lo contrario el comportamiento no está definido .Original:
memory_order must be one of std::memory_order_relaxed, std::memory_order_consume, std::memory_order_acquire or std::memory_order_seq_cst. Otherwise the behavior is undefined.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Parámetros
| memory_order | - | restricciones de memoria el orden de hacer cumplir
Original: memory order constraints to enforce The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Valor de retorno
El valor actual de la variable atómica .
Original:
The current value of the atomic variable.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Excepciones
Ver también
carga un valor de un objeto atómico Original: loads a value from an atomic object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función miembro pública) | |
(C++11)(C++11) |
Obtiene atómicamente el valor almacenado en un objeto atómico. (plantilla de función) |