int pthread_join(pthread_t thread, void **status);
Is the thread to wait for.
Is the location where the exit status of the joined thread is stored. This can be set to NULL if the exit status is not required.
A deadlock was detected or thread is the calling thread.
thread does not refer to a joinable thread.
thread does not specify a currently running thread in the process.
status is an invalid pointer.
POSIX P1003.1 (1996)
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.0 Documentation Build 6.