call_once
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>| Déclaré dans l'en-tête <threads.h>
|
||
void call_once( once_flag* flag, void (*func)(void) ); |
(depuis C11) | |
Appels fonctionner
func exactement une fois, même si elle est invoquée à partir de plusieurs threads .Original:
Calls function
func exactly once, even if invoked from several threads.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.
L'achèvement de la
func fonction synchronise avec tous les appels antérieurs ou postérieurs à call_once avec le même flag variable .Original:
The completion of the function
func synchronizes with all previous or subsequent calls to call_once with the same flag variable.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.
Paramètres
| flag | - | pointeur vers un objet qui est utilisé pour assurer
func est appelée une seule foisOriginal: pointer to an object that is used to ensure func is called only onceThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| func | - | la fonction à exécuter
Original: the function to execute The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Retourne la valeur
(Aucun)
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.