(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
[glibc.git] / linuxthreads / man / pthread_exit.man
blob54751e9d05232111a856f94350d826345517dcb6
1 .TH PTHREAD_EXIT 3 LinuxThreads
3 .SH NAME
4 pthread_exit \- terminate the calling thread
6 .SH SYNOPSIS
7 #include <pthread.h>
9 void pthread_exit(void *retval);
11 .SH DESCRIPTION
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
19 stopped.
21 The |retval| argument is the return value of the thread. It can be
22 consulted from another thread using !pthread_join!(3).
24 .SH "RETURN VALUE"
25 The !pthread_exit! function never returns.
27 .SH AUTHOR
28 Xavier Leroy <Xavier.Leroy@inria.fr>
30 .SH "SEE ALSO"
31 !pthread_create!(3),
32 !pthread_join!(3).