std::atomic_flag_clear, std::atomic_flag_clear_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. |
<metanoindex/>
<tbody> </tbody>| Elemento definito nell'header <atomic>
|
||
void atomic_flag_clear( volatile std::atomic_flag* p ); |
(1) | (dal C++11) |
void atomic_flag_clear( std::atomic_flag* p ); |
(2) | (dal C++11) |
void atomic_flag_clear_explicit( volatile std::atomic_flag* p, std::memory_order order ) |
(3) | (dal C++11) |
void atomic_flag_clear_explicit( std::atomic_flag* p, std::memory_order order ) |
(4) | (dal C++11) |
Atomically changes the state of a std::atomic_flag pointed to by p to clear (false).
Parametri
| p | - | puntatore a std::atomic_flag per accedere
Original: pointer to std::atomic_flag to access The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| order | - | the memory sycnhronization ordering for this operation: only std::memory_order_relaxed, std::memory_order_consume, std::memory_order_acquire, or std::memory_order_seq_cst are permitted. |
Valore di ritorno
nessuno.
Original:
none.
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
Possibile implementazione
| First version |
|---|
void atomic_flag_clear(volatile std::atomic_flag* p)
{
p->clear();
}
|
| Second version |
void atomic_flag_clear(std::atomic_flag* p)
{
p->clear();
}
|
| Third version |
void atomic_flag_clear_explicit(volatile std::atomic_flag* p,
std::memory_order order)
{
p->clear(order);
}
|
| Fourth version |
void atomic_flag_clear_explicit(std::atomic_flag* p,
std::memory_order order)
{
p->clear(order);
}
|
Vedi anche
(C++11) |
il blocco privo di tipo booleano atomica Original: the lock-free boolean atomic type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (classe) |
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) |
C documentation for atomic_flag_clear, atomic_flag_clear_explicit
| |