The function pthread_self() is thread safe. Signed-off-by: Peng Haitao <penght@xxxxxxxxxxxxxx> --- man3/pthread_self.3 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/man3/pthread_self.3 b/man3/pthread_self.3 index 4c85df7..2273bea 100644 --- a/man3/pthread_self.3 +++ b/man3/pthread_self.3 @@ -23,7 +23,7 @@ .\" 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 @@ -47,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 -- 1.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html