thread_join
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. |
Elemento definito nell'header <threads.h>
|
||
int thrd_join( thrd_t thr, int *res ); |
(dal C11) | |
Blocca il thread corrente finché il thread identificato da
thr
termine dell'esecuzione.Original:
Blocks the current thread until the thread identified by
thr
finishes execution.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.
Il codice di risultato del filo è messo nella posizione puntata da
res
.Original:
The result code of the thread is put to the location pointed to by
res
.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.
[modifica] Parametri
thr | - | identificatore del thread di aderire
Original: identifier of the thread to join The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
res | - | posizione in cui inserire il codice risultato
Original: location to put the result code to The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifica] Valore di ritorno
thrd_success caso di successo, altrimenti thrd_error.
Original:
thrd_success if successful, thrd_error otherwise.
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.
[modifica] Vedi anche
(C11) |
stacca un filo Original: detaches a thread The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |
(C11) |
termina il thread chiamante Original: terminates the calling thread The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) |