2 .\" Copyright (c) 2010 Michael Kerrisk, <mtk.manpages@gmail.com>
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .TH pthread_sigqueue 3 (date) "Linux man-pages (unreleased)"
8 pthread_sigqueue \- queue a signal and data to a thread
11 .RI ( libpthread ", " \-lpthread )
14 .B #include <signal.h>
15 .B #include <pthread.h>
17 .BI "int pthread_sigqueue(pthread_t " thread ", int " sig ,
18 .BI " const union sigval " value );
22 Feature Test Macro Requirements for glibc (see
23 .BR feature_test_macros (7)):
26 .BR pthread_sigqueue ():
32 .BR pthread_sigqueue ()
33 function performs a similar task to
35 but, rather than sending a signal to a process,
36 it sends a signal to a thread in the same process as the
41 argument is the ID of a thread in the same process as the caller.
44 argument specifies the signal to be sent.
47 argument specifies data to accompany the signal; see
52 .BR pthread_sigqueue ()
54 on error, it returns an error number.
58 The limit of signals which may be queued has been reached.
61 for further information.)
68 .BR pthread_sigqueue ()
69 is not supported on this system.
75 For an explanation of the terms used in this section, see
83 Interface Attribute Value
85 .BR pthread_sigqueue ()
86 T} Thread safety MT-Safe
92 The glibc implementation of
93 .BR pthread_sigqueue ()
96 on attempts to send either of the real-time signals
97 used internally by the NPTL threading implementation.
106 .BR rt_tgsigqueueinfo (2),
108 .BR pthread_sigmask (3),