Espaços nominais
Variantes
Ações

std::atomic_flag_clear, std::atomic_flag_clear_explicit

De cppreference.com

<metanoindex/>

 
 
Biblioteca operações atômica
Tipos
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
Funções
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Bandeiras atômicas
Original:
Atomic flags
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Inicialização
Original:
Initialization
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Memória de encomenda
Original:
Memory ordering
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
<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.

Exceções

noexcept specification:  
<tbody> </tbody>
noexcept
  (desde C++11)

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

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) [edit]
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) [edit]
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) [edit]
Documentação C para atomic_flag_clear, atomic_flag_clear_explicit