call_once
De cppreference.com
| Definido en el archivo de encabezado <threads.h>
|
||
void call_once( once_flag* flag, void (*func)(void) );
|
(desde C11) | |
Las llamadas a funciones
func exactamente una vez, incluso si se invoca desde varios hilos .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.
La finalización de la
func función sincroniza con todas las llamadas anteriores o posteriores a call_once con el mismo 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.
Parámetros
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.
