1 .\" Copyright (c) 2010 Michael Kerrisk, <mtk.manpages@gmail.com>
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date. The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein. The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .TH PTHREAD_SIGQUEUE 3 2010-11-16 "Linux" "Linux Programmer's Manual"
25 pthread_sigqueue \- queue a signal and data to a thread
28 .B #include <pthread.h>
30 .BI "int pthread_sigqueue(pthread_t *" thread ", int " sig ,
31 .BI " const union sigval " value );
34 Compile and link with \fI\-pthread\fP.
37 Feature Test Macro Requirements for glibc (see
38 .BR feature_test_macros (7)):
41 .BR pthread_sigqueue ():
45 .BR pthread_sigqueue ()
46 function performs a similar task to
48 but, rather than sending a signal to another process,
49 it sends a signal to another thread in the same process as the
54 argument is the ID of another thread in the same process as the caller.
57 argument specifies the signal to be sent.
60 argument specifies data to accompany the signal; see
67 on error, it returns an error number.
71 The limit of signals which may be queued has been reached.
74 for further information.)
81 .BR pthread_sigqueue ()
82 is not supported on this system.
89 .BR pthread_sigqueue ()
90 function first appeared in glibc 2.11.
91 It is implemented using the Linux-specific
92 .BR rt_tgsigqueinfo ()
93 system call, which was added in Linux 2.6.31.
95 This function is a GNU extension.
100 .BR pthread_sigmask (3),