std::atomic::store
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í. |
void store( T desired, memory_order = std::memory_order_seq_cst );
|
(desde C++11) | |
void store( T desired, memory_order = std::memory_order_seq_cst ) volatile;
|
(desde C++11) | |
Atómicamente sustituye el valor actual con
desired. Memoria se ve afectada de acuerdo con el valor de memory_order .Original:
Atomically replaces the current value with
desired. 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_release 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_release 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
| desired | - | el valor para almacenar en la variable atómica
Original: the value to store into 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. |
| 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
(Ninguno)
Original:
(none)
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
almacena un valor en un objeto atómico Original: stores a value into 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) |
Sustituye atómicamente el valor del objeto atómico con el de un argumento no atómico. (plantilla de función) |