std::atomic::atomic
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> atomic() = default; |
(1) | (seit C++11) |
constexpr atomic( T desired ); |
(2) | (seit C++11) |
atomic( const atomic& ) = delete; |
(3) | (seit C++11) |
Erzeugt neue atomare Variable .
Original:
Constructs new 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.
1)
Der Standardkonstruktor ist trivial: keine Initialisierung erfolgt anders als Null-Initialisierung von statischen und lokalen Thread-Objekte. std::atomic_init kann verwendet werden, um die Initialisierung abzuschließen .
Original:
The default constructor is trivial: no initialization takes place other than Null-Initialisierung of static and thread-local objects. std::atomic_init may be used to complete initialization.
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.
2)
Initialisiert den zugrunde liegenden Wert mit
desired. Die Initialisierung ist nicht atomar .Original:
Initializes the underlying value with
desired. The initialization is not atomic.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.
3)
Atomic Variablen sind nicht
CopyConstructible .Original:
Atomic variables are not
CopyConstructible.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 | - | Wert mit initialisieren
Original: value to initialize with The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |