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. |
| Défini dans l'entête <atomic>
|
||
| void atomic_flag_clear( volatile std::atomic_flag* p ); |
(1) | (depuis C++11) |
| void atomic_flag_clear( std::atomic_flag* p ); |
(2) | (depuis C++11) |
| void atomic_flag_clear_explicit( volatile std::atomic_flag* p, std::memory_order order ) |
(3) | (depuis C++11) |
| void atomic_flag_clear_explicit( std::atomic_flag* p, std::memory_order order ) |
(4) | (depuis C++11) |
Change l'état atomique d'un std::atomic_flag pointé par
p à effacer (false) . Original:
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.
Sommaire |
[modifier] Paramètres
| p | - | pointeur vers std::atomic_flag d'accès
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 | - | sycnhronization la mémoire de commande pour cette opération: seulement std::memory_order_relaxed, std::memory_order_consume, std::memory_order_acquire ou std::memory_order_seq_cst sont autorisés .
Original: 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. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifier] Retourne la valeur
aucune .
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.
[modifier] Exceptions
[modifier] Mise en œuvre possible
| 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); } |
[modifier] Voir aussi
| (C++11) |
la serrure sans type booléen atomique 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) |
| (C++11) (C++11) |
définit de manière atomique le drapeau pour true et renvoie sa valeur précédente 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. (fonction) |
| (C++11) |
définit des contraintes de mémoire de commande pour l'opération donnée atomique 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
| |