Multithreaded Programming Guide

pthread_exit Return Values

The calling thread terminates with its exit status set to the contents of status.