std::atomic::store
Aus cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody> void store( T desired, memory_order = std::memory_order_seq_cst ); |
(seit C++11) | |
void store( T desired, memory_order = std::memory_order_seq_cst ) volatile; |
(seit C++11) | |
Atomar ersetzt den aktuellen Wert mit
desired. Speichermodul gemäß dem Wert des betroffenen 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 muss eine std::memory_order_relaxed sein, std::memory_order_release oder std::memory_order_seq_cst. Ansonsten ist das Verhalten undefiniert ist .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.
Parameter
| desired | - | der Wert in der atomaren Variablen zu speichern
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 | - | Speicher, um Einschränkungen zu erzwingen
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. |
Rückgabewert
(None)
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.
Ausnahmen
Siehe auch
speichert einen Wert in einem atomaren Objekt 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. (öffentliche Elementfunktion) | |
(C++11) (C++11) |
ersetzt atomar den Wert des atomaren Objekts durch ein nichtatomares Argument Original: atomically replaces the value of the atomic object with a non-atomic argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktions-Template) |