std::atomic_flag::atomic_flag
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>| definiert in Header <atomic>
|
||
atomic_flag(); |
(1) | (seit C++11) |
atomic_flag( const atomic_flag& ) = delete; |
(2) | (seit C++11) |
Erzeugt ein neues std::atomic_flag .
Original:
Constructs a new std::atomic_flag.
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)
Trivial Standardkonstruktor initialisiert std::atomic_flag nicht näher bezeichneter Zustand .
Original:
Trivial default constructor, initializes std::atomic_flag to unspecified state.
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)
Der Copy-Konstruktor wird gestrichen; std::atomic_flag kann nicht kopiert werden .
Original:
The copy constructor is deleted; std::atomic_flag is not copyable.
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.
Zusätzlich kann std::atomic_flag sein Wert initialisiert, um mit der Expression Zustand ATOMIC_FLAG_INIT löschen. Für eine atomic_flag mit statischen Lagerdauer, garantiert dies, dass die Werte dieser Flagge bekannt ist, bevor irgendwelche Konstruktoren für statische Objekte ausgeführt werden .
Original:
In addition, std::atomic_flag can be value-initialized to clear state with the expression ATOMIC_FLAG_INIT. For an atomic_flag with static storage duration, this guarantees that the values of this flag is known before any constructors are run for static objects.
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
| arg | - | das Ergebnis ATOMIC_FLAG_INIT
Original: the result of ATOMIC_FLAG_INIT The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Ausnahmen
1)
Siehe auch
(C++11) |
initializes an std::atomic_flag to false (Makro konstant) |