.\" the source, must acknowledge the copyright and authors of this work.
.\" %%%LICENSE_END
.\"
-.TH PTHREAD_SIGQUEUE 3 2015-03-02 "Linux" "Linux Programmer's Manual"
+.TH PTHREAD_SIGQUEUE 3 2017-09-15 "Linux" "Linux Programmer's Manual"
.SH NAME
pthread_sigqueue \- queue a signal and data to a thread
.SH SYNOPSIS
.nf
.B #include <signal.h>
.B #include <pthread.h>
-
+.PP
.BI "int pthread_sigqueue(pthread_t " thread ", int " sig ,
.BI " const union sigval " value );
.fi
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR pthread_sigqueue ():
_GNU_SOURCE
.SH DESCRIPTION
but, rather than sending a signal to a process,
it sends a signal to a thread in the same process as the
calling thread.
-
+.PP
The
.I thread
argument is the ID of a thread in the same process as the caller.