std::atomic::atomic
De 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) | (desde C++11) |
constexpr atomic( T desired ); |
(2) | (desde C++11) |
atomic( const atomic& ) = delete; |
(3) | (desde C++11) |
Constrói variável atômica novo.
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)
O construtor padrão é trivial: não inicialização ocorre que não de zero a inicialização de objetos estáticos e de segmento local. std::atomic_init pode ser usada para completar a inicialização.
Original:
The default constructor is trivial: no initialization takes place other than de zero a inicialização 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)
Inicializa o valor subjacente com
desired. A inicialização não é atômica.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)
Variáveis atômicas não são
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.
Parâmetros
| desired | - | valor para inicializar com
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. |