cnd_init
De cppreference.com
|
|
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
| 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.
You can help to correct and verify the translation. Click here for instructions.
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. |
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.
You can help to correct and verify the translation. Click here for instructions.