|Linux & Unix Commands - Search Man Pages
pthread_exit - terminate the calling thread
void pthread_exit(void *retval);
pthread_exit terminates the execution of the calling thread. All cleanup handlers that
have been set for the calling thread with pthread_cleanup_push(3) are executed in reverse
order (the most recently pushed handler is executed first). Finalization functions for
thread-specific data are then called for all keys that have non- NULL values associated
with them in the calling thread (see pthread_key_create(3)). Finally, execution of the
calling thread is stopped.
The retval argument is the return value of the thread. It can be consulted from another
thread using pthread_join(3).
The pthread_exit function never returns.
Xavier Leroy <Xavier.Leroy@inria.fr>
All times are GMT -4. The time now is 11:56 PM.