std::atomic_flag_clear, std::atomic_flag_clear_explicit
De cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody>| Definido no cabeçalho <atomic>
|
||
void atomic_flag_clear( volatile std::atomic_flag* p ); |
(1) | (desde C++11) |
void atomic_flag_clear( std::atomic_flag* p ); |
(2) | (desde C++11) |
void atomic_flag_clear_explicit( volatile std::atomic_flag* p, std::memory_order order ) |
(3) | (desde C++11) |
void atomic_flag_clear_explicit( std::atomic_flag* p, std::memory_order order ) |
(4) | (desde C++11) |
Atomically changes the state of a std::atomic_flag pointed to by p to clear (false).
Parâmetros
| p | - | ponteiro para std::atomic_flag acessar
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. |
Valor de retorno
nenhum.
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.
Exceções
Possível implementação
| 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);
}
|
Veja também
(C++11) |
o lock-livre tipo boolean atômica 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) |
atomicamente define o sinalizador para true e retorna seu valor anterior 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. (função) | |
(C++11) |
define restrições de memória de encomenda para a operação dada atômica 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) |
Documentação C para atomic_flag_clear, atomic_flag_clear_explicit
| |