std::atomic::load
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> T load( memory_order = std::memory_order_seq_cst ) const; |
(seit C++11) | |
T load( memory_order = std::memory_order_seq_cst ) const volatile; |
(seit C++11) | |
Lädt atomar den aktuellen Wert der atomaren Variable. Der Speicher wird durch den Wert der
memory_order beeinflusst.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 muss eine std::memory_order_relaxed sein, std::memory_order_consume, std::memory_order_acquire oder std::memory_order_seq_cst. Ansonsten ist das Verhalten undefiniert.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.
Parameter
| 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
Der aktuelle Wert der atomaren Variablen.
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.
Ausnahmen
Siehe auch
lädt einen Wert von einem atomaren Objekt 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. (öffentliche Elementfunktion) | |
(C++11) (C++11) |
erhält atomar den Wert eines atomaren Objekts Original: atomically obtains the value stored in 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. (Funktions-Template) |