#include <pthread.h>
void pthread_exit (any_t status);
void pthread_exit
The pthread_exit function terminates the calling thread returning the value given by status to any thread that has called pthread_join for the calling thread.
The pthread_exit function returns no value.
None