1PTHREAD_KILL_OTHER_THREADS_NLPi(n3u)x Programmer's MPaTnHuRaElAD_KILL_OTHER_THREADS_NP(3)
2
3
4
6 pthread_kill_other_threads_np - terminate all other threads in process
7
9 #include <pthread.h>
10
11 void pthread_kill_other_threads_np(void);
12
14 pthread_kill_other_threads_np() only has an effect in the LinuxThreads
15 threading implementation. On that implementation, calling this func‐
16 tion causes the immediate termination of all threads in the applica‐
17 tion, except the calling thread. The cancellation state and cancella‐
18 tion type of the to-be-terminated threads are ignored, and the cleanup
19 handlers are not called in those threads.
20
22 This function is a nonstandard GNU extension.
23
25 pthread_kill_other_threads_np() is intended to be called just before a
26 thread calls execve(2) or a similar function. This function is
27 designed to address a limitation in the obsolete LinuxThreads implemen‐
28 tation whereby the other threads of an application are not automati‐
29 cally terminated (as POSIX.1-2001 requires) during execve(2).
30
31 In the NPTL threading implementation, pthread_kill_other_threads_np()
32 exists, but does nothing. (Nothing needs to be done, because the
33 implementation does the right thing during an execve(2).)
34
36 execve(2), pthread_setcancelstate(3), pthread_setcanceltype(3),
37 pthread_cancel(3), pthreads(7)
38
40 This page is part of release 3.25 of the Linux man-pages project. A
41 description of the project, and information about reporting bugs, can
42 be found at http://www.kernel.org/doc/man-pages/.
43
44
45
46Linux 2009-01-28 PTHREAD_KILL_OTHER_THREADS_NP(3)