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. |
| Defined in header <atomic>
|
||
| void atomic_flag_clear( volatile std::atomic_flag* p ); |
(1) | (ya que C + +11) |
| void atomic_flag_clear( std::atomic_flag* p ); |
(2) | (ya que C + +11) |
| void atomic_flag_clear_explicit( volatile std::atomic_flag* p, std::memory_order order ) |
(3) | (ya que C + +11) |
| void atomic_flag_clear_explicit( std::atomic_flag* p, std::memory_order order ) |
(4) | (ya que C + +11) |
Atomically changes the state of a std::atomic_flag pointed to by p to clear (false).
Contenido |
[editar] Parámetros
| p | - | puntero a std::atomic_flag acceder
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. |
[editar] Valor de retorno
ninguno .
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.
[editar] Excepciones
[editar] Posible implementación
| 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); } |
[editar] Ver también
| (C++11) |
el bloqueo libre de tipo atómico booleano 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. (clase) |
| atómicamente establece el indicador a true y devuelve su 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. (función) | |
| (C++11) |
define las limitaciones de memoria de pedido para la operación 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) |
| C documentation for atomic_flag_clear, atomic_flag_clear_explicit
| |