1 .TH PTHREAD_EXIT 3 LinuxThreads
4 pthread_exit \- terminate the calling thread
9 void pthread_exit(void *retval);
12 !pthread_exit! terminates the execution of the calling thread.
13 All cleanup handlers that have been set for the calling thread with
14 !pthread_cleanup_push!(3) are executed in reverse order (the most
15 recently pushed handler is executed first). Finalization functions for
16 thread-specific data are then called for all keys that have non-!NULL!
17 values associated with them in the calling thread (see
18 !pthread_key_create!(3)). Finally, execution of the calling thread is
21 The |retval| argument is the return value of the thread. It can be
22 consulted from another thread using !pthread_join!(3).
25 The !pthread_exit! function never returns.
28 Xavier Leroy <Xavier.Leroy@inria.fr>