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

ATTRIBUTES

22       For  an  explanation  of  the  terms  used   in   this   section,   see
23       attributes(7).
24
25       ┌────────────────────────────────┬───────────────┬─────────┐
26Interface                       Attribute     Value   
27       ├────────────────────────────────┼───────────────┼─────────┤
28pthread_kill_other_threads_np() │ Thread safety │ MT-Safe │
29       └────────────────────────────────┴───────────────┴─────────┘

CONFORMING TO

31       This  function  is  a nonstandard GNU extension; hence the suffix "_np"
32       (nonportable) in the name.
33

NOTES

35       pthread_kill_other_threads_np() is intended to be called just before  a
36       thread  calls  execve(2)  or  a  similar  function.   This  function is
37       designed to address a limitation in the obsolete LinuxThreads implemen‐
38       tation  whereby  the  other threads of an application are not automati‐
39       cally terminated (as POSIX.1-2001 requires) during execve(2).
40
41       In the NPTL threading  implementation,  pthread_kill_other_threads_np()
42       exists,  but  does  nothing.   (Nothing  needs  to be done, because the
43       implementation does the right thing during an execve(2).)
44

SEE ALSO

46       execve(2), pthread_cancel(3),  pthread_setcancelstate(3),  pthread_set‐
47       canceltype(3), pthreads(7)
48

COLOPHON

50       This  page  is  part of release 4.15 of the Linux man-pages project.  A
51       description of the project, information about reporting bugs,  and  the
52       latest     version     of     this    page,    can    be    found    at
53       https://www.kernel.org/doc/man-pages/.
54
55
56
57Linux                             2017-09-15  PTHREAD_KILL_OTHER_THREADS_NP(3)
Impressum