Exit the current thread and return the specified status. If the current thread is not "detached", then a call to join must be made to reclaim any resources used by the thread, and to retrieve the exit status. Note that generally, the preferred method of exiting a thread is to return form the entry point function.
Declared in <bslmt_threadutilimpl_pthread.h>
static
void
exit(void* status);