atomic_flag_test_and_set, atomic_flag_test_and_set_explicit
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. |
Elemento definito nell'header <stdatomic.h>
|
||
_Bool atomic_flag_test_and_set( volatile atomic_flag* obj ); |
(1) | |
_Bool atomic_flag_test_and_set_explicit( volatile atomic_flag* obj, memory_order order ); |
(2) | |
Atomico cambia lo stato di un
atomic_flag
puntato da obj
per impostare (true) e restituisce il valore precedente. La prima memoria versione ordini accessi secondo memory_order_seq_cst, la seconda memoria versione ordini accessi secondo order
.Original:
Atomically changes the state of a
atomic_flag
pointed to by obj
to set (true) and returns the previous value. The first version orders memory accesses according to memory_order_seq_cst, the second version orders memory accesses according to 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.
[modifica] Parametri
obj | - | puntatore all'oggetto bandiera atomico da modificare
Original: pointer to the atomic flag object to modify The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
order | - | la sincronizzazione della memoria di ordinazione per questa operazione: tutti i valori sono consentiti
Original: the memory synchronization ordering for this operation: all values are permitted The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifica] Valore di ritorno
Il valore precedente detenuto da bandiera atomico puntato da
obj
.Original:
The previous value held by the atomic flag pointed to by
obj
.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] Vedi anche
imposta un atomic_flag su false Original: sets an atomic_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. (funzione) | |
C++ documentation for atomic_flag_test_and_set, atomic_flag_test_and_set_explicit
|