.\" Copyright (c) 2008 Linux Foundation, written by Michael Kerrisk
.\" <mtk.manpages@gmail.com>
.\"
+.\" %%%LICENSE_START(VERBATIM)
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
.\"
-.TH PTHREAD_TESTCANCEL 3 2008-11-17 "Linux" "Linux Programmer's Manual"
+.TH PTHREAD_TESTCANCEL 3 2014-05-19 "Linux" "Linux Programmer's Manual"
.SH NAME
pthread_testcancel \- request delivery of any pending cancellation request
.SH SYNOPSIS
.B void pthread_testcancel(void);
.sp
Compile and link with \fI\-pthread\fP.
+.fi
.SH DESCRIPTION
Calling
.BR pthread_testcancel ()
.BR pthread_setcancelstate (3)),
or no cancellation request is pending,
then a call to
-.BR pthread_cancel ()
+.BR pthread_testcancel ()
has no effect.
.SH RETURN VALUE
This function does not return a value.
This function always succeeds.
.\" SH VERSIONS
.\" Available since glibc 2.0
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR pthread_testcancel ()
+function is thread-safe.
.SH CONFORMING TO
POSIX.1-2001.
.SH EXAMPLE
.BR pthread_cleanup_push (3),
.BR pthread_setcancelstate (3),
.BR pthreads (7)
+.SH COLOPHON
+This page is part of release 3.68 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.