OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man3 / pthread_self.3
index 1171407..aa4652e 100644 (file)
@@ -1,6 +1,7 @@
 .\" 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.
@@ -20,8 +21,9 @@
 .\"
 .\" 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
@@ -45,6 +47,11 @@ call that created this thread.
 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
@@ -63,7 +70,7 @@ Thread identifiers should be considered opaque:
 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.
 
@@ -75,3 +82,12 @@ is not the same thing as the kernel thread ID returned by a call to
 .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/.