1 .\" Copyright (c) 2010 Michael Kerrisk, <mtk.manpages@gmail.com>
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein. The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
25 .TH PTHREAD_SIGQUEUE 3 2021-03-22 "Linux" "Linux Programmer's Manual"
27 pthread_sigqueue \- queue a signal and data to a thread
30 .B #include <signal.h>
31 .B #include <pthread.h>
33 .BI "int pthread_sigqueue(pthread_t " thread ", int " sig ,
34 .BI " const union sigval " value );
37 Compile and link with \fI\-pthread\fP.
40 Feature Test Macro Requirements for glibc (see
41 .BR feature_test_macros (7)):
44 .BR pthread_sigqueue ():
50 .BR pthread_sigqueue ()
51 function performs a similar task to
53 but, rather than sending a signal to a process,
54 it sends a signal to a thread in the same process as the
59 argument is the ID of a thread in the same process as the caller.
62 argument specifies the signal to be sent.
65 argument specifies data to accompany the signal; see
70 .BR pthread_sigqueue ()
72 on error, it returns an error number.
76 The limit of signals which may be queued has been reached.
79 for further information.)
86 .BR pthread_sigqueue ()
87 is not supported on this system.
94 .BR pthread_sigqueue ()
95 function first appeared in glibc 2.11.
97 For an explanation of the terms used in this section, see
105 Interface Attribute Value
107 .BR pthread_sigqueue ()
108 T} Thread safety MT-Safe
114 This function is a GNU extension.
116 The glibc implementation of
117 .BR pthread_sigqueue ()
120 on attempts to send either of the real-time signals
121 used internally by the NPTL threading implementation.
126 .BR rt_tgsigqueueinfo (2),
128 .BR pthread_sigmask (3),