Defined in header
int thrd_join( thrd_t thr, int *res );
Blocks the current thread until the thread identified by
thr finishes execution.
res is not a null pointer, the result code of the thread is put to the location pointed to by
The termination of the thread synchronizes-with the completion of this function.
The behavior is undefined if the thread was previously detached or joined by another thread.
|thr||-||identifier of the thread to join|
|res||-||location to put the result code to|
 Return value
- C11 standard (ISO/IEC 9899:2011):
- 184.108.40.206 The thrd_join function (p: 384-385)
 See also
| detaches a thread |
| terminates the calling thread |
C++ documentation for join