Namensräume
Varianten
Aktionen

cnd_init

Aus cppreference.com
< c‎ | thread

 
 
Thema Support-Bibliothek
Threads
Original:
Threads
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Gegenseitigen Ausschluss
Original:
Mutual exclusion
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Rufen Sie einmal
Original:
Call once
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Zustand Variablen
Original:
Condition variables
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Thread-lokalen Speicher
Original:
Thread-local storage
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
Defined in header <threads.h>
int cnd_init( cnd_t* cond );
(Seit C11)
Initialisiert eine neue Zustandsgröße. Das Objekt, auf das cond auf den Wert, der die Bedingung Variable identifiziert gesetzt werden .
Original:
Initializes new condition variable. The object pointed to by cond will be set to value that identifies the condition variable.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[Bearbeiten] Parameter

cond -
Zeiger auf eine Variable auf Kennung des Zustandsvariable zu speichern
Original:
pointer to a variable to store identifier of the condition variable to
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[Bearbeiten] Rückgabewert

thrd_success wenn die Bedingung variable erfolgreich erstellt wurde. Ansonsten kehrt thrd_nomem wenn es unzureichende Menge an Speicher oder thrd_error wenn ein anderer Fehler aufgetreten .
Original:
thrd_success if the condition variable was successfully created. Otherwise returns thrd_nomem if there was insufficient amount of memory or thrd_error if another error occurred.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.