Espacios de nombres
Variantes
Acciones

cnd_init

De cppreference.com
< c‎ | thread
 
 
Tema Biblioteca de ayuda
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.
Exclusión mutua
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.
Llame a la vez
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.
Las variables de condición
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.
Almacenamiento local de subprocesos
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.
 
Definido en el archivo de encabezado <threads.h>
int cnd_init( cnd_t* cond );
(desde C11)
Inicializa variable de condición nueva. El objeto al que apunta cond se establecerá en el valor que identifica la variable de condición .
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.

[editar] Parámetros

cond -
puntero a una variable para almacenar identificador de la condición variable a
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.

[editar] Valor de retorno

thrd_success si la variable de condición fue creado con éxito. De lo contrario devuelve thrd_nomem si había una cantidad insuficiente de memoria o thrd_error si otro error .
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.