.\" 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_SELF 3 2008-10-24 "Linux" "Linux Programmer's Manual"
+.TH PTHREAD_SELF 3 2014-05-13 "Linux" "Linux Programmer's Manual"
.SH NAME
pthread_self \- obtain ID of the calling thread
.SH SYNOPSIS
This function always succeeds, returning the calling thread's ID.
.SH ERRORS
This function always succeeds.
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR pthread_self ()
+function is thread-safe.
.SH CONFORMING TO
POSIX.1-2001.
.SH NOTES
any attempt to use a thread ID other than in pthreads calls
is nonportable and can lead to unspecified results.
-Thread IDs are only guaranteed to be unique within a process.
+Thread IDs are guaranteed to be unique only within a process.
A thread ID may be reused after a terminated thread has been joined,
or a detached thread has terminated.
.BR pthread_create (3),
.BR pthread_equal (3),
.BR pthreads (7)
+.SH COLOPHON
+This page is part of release 3.79 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/.