1 .\" Copyright (c) 2010 Michael Kerrisk, <mtk.manpages@gmail.com>
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .TH PTHREAD_SIGQUEUE 3 2021-03-22 "Linux man-pages (unreleased)"
7 pthread_sigqueue \- queue a signal and data to a thread
10 .RI ( libpthread ", " \-lpthread )
13 .B #include <signal.h>
14 .B #include <pthread.h>
16 .BI "int pthread_sigqueue(pthread_t " thread ", int " sig ,
17 .BI " const union sigval " value );
21 Feature Test Macro Requirements for glibc (see
22 .BR feature_test_macros (7)):
25 .BR pthread_sigqueue ():
31 .BR pthread_sigqueue ()
32 function performs a similar task to
34 but, rather than sending a signal to a process,
35 it sends a signal to a thread in the same process as the
40 argument is the ID of a thread in the same process as the caller.
43 argument specifies the signal to be sent.
46 argument specifies data to accompany the signal; see
51 .BR pthread_sigqueue ()
53 on error, it returns an error number.
57 The limit of signals which may be queued has been reached.
60 for further information.)
67 .BR pthread_sigqueue ()
68 is not supported on this system.
75 .BR pthread_sigqueue ()
76 function first appeared in glibc 2.11.
78 For an explanation of the terms used in this section, see
86 Interface Attribute Value
88 .BR pthread_sigqueue ()
89 T} Thread safety MT-Safe
95 This function is a GNU extension.
97 The glibc implementation of
98 .BR pthread_sigqueue ()
101 on attempts to send either of the real-time signals
102 used internally by the NPTL threading implementation.
107 .BR rt_tgsigqueueinfo (2),
109 .BR pthread_sigmask (3),