std::atomic_flag::test_and_set
Da cppreference.com.
< cpp | atomic | atomic flag
![]() |
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. |
Elemento definito nell'header <atomic>
|
||
bool test_and_set(std::memory_order order = std::memory_order_seq_cst) volatile; |
(1) | (dal C++11) |
bool test_and_set(std::memory_order order = std::memory_order_seq_cst); |
(2) | (dal C++11) |
Atomico cambia lo stato di un std::atomic_flag per impostare (true) e restituisce il valore di essa deteneva prima.
Original:
Atomically changes the state of a std::atomic_flag to set (true) and returns the value it held before.
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.
[modifica] Parametri
order | - | sycnhronization la memoria di ordinazione per questa operazione
Original: the memory sycnhronization ordering for this operation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifica] Eccezioni
[modifica] Vedi anche
imposta atomicamente bandiera false Original: atomically sets flag to false The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) | |
imposta atomicamente il flag su true e restituisce il suo valore precedente Original: atomically sets the flag to true and returns its previous value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |
(C++11) |
definisce i limiti di memoria di ordinazione per il data operazione atomica Original: defines memory ordering constraints for the given atomic operation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (typedef) |