Namespaces
Variants
Views
Actions

thread_join

From cppreference.com
< c‎ | thread
Revision as of 18:36, 9 July 2013 by P12bot (Talk | contribs)

Defined in header <threads.h>
int thrd_join( thrd_t thr, int *res );
(since C11)

Blocks the current thread until the thread identified by thr finishes execution.

The result code of the thread is put to the location pointed to by res.

Parameters

thr - identifier of the thread to join
res - location to put the result code to

Return value

thrd_success if successful, thrd_error otherwise.

See also

detaches a thread
(function) [edit]
terminates the calling thread
(function) [edit]