call_once
Aus 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>| definiert in Header <threads.h>
|
||
void call_once( once_flag* flag, void (*func)(void) ); |
(Seit C11) | |
Anrufe funktionieren
func genau einmal, auch wenn von mehreren Threads aufgerufen .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.
Der Abschluss der Funktion
func synchronisiert mit allen vorherigen oder nachfolgenden Aufrufen call_once mit der gleichen 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.
Parameter
| flag | - | Zeiger auf ein Objekt, das zum
func sicherzustellen wird nur einmal aufgerufenOriginal: 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 | - | die Funktion auszuführen
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. |
Rückgabewert
(None)
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.