std::atomic::atomic
De cppreference.com
|
|
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
atomic() = default;
|
(1) | (desde C++11) |
constexpr atomic( T desired );
|
(2) | (desde C++11) |
atomic( const atomic& ) = delete;
|
(3) | (desde C++11) |
Construye variable atómica nuevo .
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)
El constructor por defecto es trivial: no inicialización tiene lugar distinto cero de inicialización de objetos estáticos y local de subprocesos. std::atomic_init se puede utilizar para completar la inicialización .
Original:
The default constructor is trivial: no initialization takes place other than cero de inicialización 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 el valor subyacente con
desired. La inicialización no es 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)
Variables atómicas no son
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 con
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. |