cnd_init
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody>| Elemento definito nell'header <threads.h>
|
||
int cnd_init( cnd_t* cond ); |
(dal C11) | |
Inizializza variabile nuova condizione. L'oggetto puntato da
cond verrà impostato al valore che identifica la variabile di condizione.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.
Parametri
| cond | - | puntatore a una variabile per memorizzare identificatore della condizione variabile
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. |
Valore di ritorno
thrd_success se la variabile di condizione è stato creato con successo. In caso contrario, restituisce thrd_nomem se ci fosse insufficiente quantità di memoria o thrd_error se un altro errore.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.