Espaces de noms
Variantes
Affichages
Actions

cnd_init

De cppreference.com
< c‎ | thread

 
 
Bibliothèque de support fil
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.
L'exclusion mutuelle
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.
Appelez fois
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.
Les variables de condition
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.
Stockage local des threads
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 );
(depuis C11)
Initialise la variable état neuf. L'objet pointé par cond sera réglé à la valeur qui identifie la variable de condition .
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.

[modifier] Paramètres

cond -
pointeur vers une variable pour stocker identificateur de la variable d'état à
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.

[modifier] Retourne la valeur

thrd_success si la variable de condition a été créé avec succès. Sinon retourne thrd_nomem s'il y avait quantité insuffisante de mémoire ou thrd_error si une autre erreur s'est produite .
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.