std::atomic::load
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> T load( memory_order = std::memory_order_seq_cst ) const; |
(dal C++11) | |
T load( memory_order = std::memory_order_seq_cst ) const volatile; |
(dal C++11) | |
Atomicamente carichi e restituisce il valore corrente della variabile atomica. Memoria è influenzata in base al valore di
memory_order.Original:
Atomically loads and returns the current value of the atomic variable. Memory is affected according to the value of
memory_order.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.
memory_order deve essere uno dei std::memory_order_relaxed, std::memory_order_consume, std::memory_order_acquire o std::memory_order_seq_cst. In caso contrario, il comportamento non è definito.Original:
memory_order must be one of std::memory_order_relaxed, std::memory_order_consume, std::memory_order_acquire or std::memory_order_seq_cst. Otherwise the behavior is undefined.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
| memory_order | - | vincoli di ordine di memoria da far rispettare
Original: memory order constraints to enforce The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Valore di ritorno
Il valore corrente della variabile atomica.
Original:
The current value of the 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.
Eccezioni
Vedi anche
carica di un valore da un oggetto atomico Original: loads a value from an atomic object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) | |
(C++11) (C++11) |
atomicamente ottiene il valore memorizzato in un oggetto atomico Original: atomically obtains the value stored in an atomic object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione di modello) |