1PTHREAD_KILL_OTHER_THREADS_NLPi(n3u)x Programmer's MPaTnHuRaElAD_KILL_OTHER_THREADS_NP(3)
2
3
4

NAME

6       pthread_kill_other_threads_np - terminate all other threads in process
7

SYNOPSIS

9       #include <pthread.h>
10
11       void pthread_kill_other_threads_np(void);
12

DESCRIPTION

14       pthread_kill_other_threads_np()  has an effect only 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

CONFORMING TO

22       This function is a nonstandard GNU extension; hence  the  suffix  "_np"
23       (nonportable) in the name.
24

NOTES

26       pthread_kill_other_threads_np()  is intended to be called just before a
27       thread calls  execve(2)  or  a  similar  function.   This  function  is
28       designed to address a limitation in the obsolete LinuxThreads implemen‐
29       tation whereby the other threads of an application  are  not  automati‐
30       cally terminated (as POSIX.1-2001 requires) during execve(2).
31
32       In  the  NPTL threading implementation, pthread_kill_other_threads_np()
33       exists, but does nothing.  (Nothing  needs  to  be  done,  because  the
34       implementation does the right thing during an execve(2).)
35

SEE ALSO

37       execve(2),  pthread_cancel(3),  pthread_setcancelstate(3), pthread_set‐
38       canceltype(3), pthreads(7)
39

COLOPHON

41       This page is part of release 3.53 of the Linux  man-pages  project.   A
42       description  of  the project, and information about reporting bugs, can
43       be found at http://www.kernel.org/doc/man-pages/.
44
45
46
47Linux                             2010-09-09  PTHREAD_KILL_OTHER_THREADS_NP(3)
Impressum