The pthread_join function

Name

pthread_join -- 

Synopsis

#include <pthread.h>

int pthread_join (pthread_t thread, any_t *status);

Description

The pthread_join function causes the calling thread to wait for the given thread's termination. If the parameter status is not null then it receives the return value of the terminating thread.

Returns

The pthread_join function returns zero if the call is successful, otherwise it sets errno to EINVAL and returns -1.

Implementation Notes

None