std::atomic::atomic
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody> atomic() = default; |
(1) | (dal C++11) |
constexpr atomic( T desired ); |
(2) | (dal C++11) |
atomic( const atomic& ) = delete; |
(3) | (dal C++11) |
Costruisce nuova variabile atomica.
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)
Il costruttore di default è banale: non di inizializzazione vengono eseguite diverse inizializzazione a zero di oggetti statici e filo-locale. std::atomic_init può essere utilizzato per completare l'inizializzazione.
Original:
The default constructor is trivial: no initialization takes place other than inizializzazione a zero 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)
Inizializza il valore sottostante con
desired. L'inizializzazione non è atomico.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)
Variabili atomiche non sono
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.
Parametri
| desired | - | valore per inizializzare 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. |