Espaços nominais
Variantes
Acções

thread_join

Da cppreference.com
< c‎ | thread

 
 
Biblioteca de suporte a discussão
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.
Exclusão mútua
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.
Chamar uma 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.
Variáveis ​​de condição
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.
Segmento local de armazenamento
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 thrd_join( thrd_t thr, int *res );
(desde C11)
Bloqueia o segmento atual até que o segmento identificado por thr termina a execução.
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.
O código de resultado do segmento é posta à localização apontada por 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.

[editar] Parâmetros

thr -
identificador do segmento para participar
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 -
local para colocar o código de resultado para
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.

[editar] Valor de retorno

thrd_success se bem sucedido, caso contrário 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.

[editar] Veja também

destaca uma discussão
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.

(função) [edit]
termina o segmento de chamada
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.

(função) [edit]