std::once_flag
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éclaré dans l'en-tête <mutex>
|
||
class once_flag; |
(depuis C++11) | |
Le
std::once_flag
classe est une structure d'aide pour std::call_once .Original:
The class
std::once_flag
is a helper structure for std::call_once.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.
Un objet de
std::once_flag
type qui est passé à plusieurs appels à std::call_once permet de coordonner les appels avec eachother sorte que seul un des appels sera effectivement exécuté jusqu'à la fin .Original:
An object of type
std::once_flag
that is passed to multiple calls to std::call_once allows those calls to coordinate with eachother such that only one of the calls will actually run to completion.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.
std::once_flag
est noncopyable .Original:
std::once_flag
is noncopyable.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] Fonctions membres
std :: once_flag ::Original:std::once_flag::The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.once_flag
Original:
std::once_flag::
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.
once_flag(); |
||
Constructs an once_flag
object. The internal state is set to indicate that no function has been called yet.
Parameters
(none)
Exceptions
[modifier] Voir aussi
(C++11) |
appelle une fonction qu'une seule fois, même si elle est appelée par plusieurs threads Original: invokes a function only once even if called from multiple threads The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction générique) |