OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man3 / pthread_getcpuclockid.3
index 95b7777..c48b802 100644 (file)
@@ -23,7 +23,7 @@
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH PTHREAD_GETCPUCLOCKID 3 2009-02-08 "Linux" "Linux Programmer's Manual"
+.TH PTHREAD_GETCPUCLOCKID 3 2014-05-23 "Linux" "Linux Programmer's Manual"
 .SH NAME
 pthread_getcpuclockid \- retrieve ID of a thread's CPU time clock
 .SH SYNOPSIS
 .SH NAME
 pthread_getcpuclockid \- retrieve ID of a thread's CPU time clock
 .SH SYNOPSIS
@@ -31,7 +31,7 @@ pthread_getcpuclockid \- retrieve ID of a thread's CPU time clock
 .B #include <pthread.h>
 .B #include <time.h>
 
 .B #include <pthread.h>
 .B #include <time.h>
 
-.BI "int pthread_getcpuclockid(pthread_t " thread ", clockid_t *" clock_id);
+.BI "int pthread_getcpuclockid(pthread_t " thread ", clockid_t *" clock_id );
 .sp
 Compile and link with \fI\-pthread\fP.
 .fi
 .sp
 Compile and link with \fI\-pthread\fP.
 .fi
@@ -62,6 +62,11 @@ No thread with the ID
 could be found.
 .SH VERSIONS
 This function is available in glibc since version 2.2.
 could be found.
 .SH VERSIONS
 This function is available in glibc since version 2.2.
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR pthread_getcpuclockid ()
+function is thread-safe.
 .SH CONFORMING TO
 POSIX.1-2001.
 .SH NOTES
 .SH CONFORMING TO
 POSIX.1-2001.
 .SH NOTES
@@ -81,6 +86,7 @@ The program below creates a thread and then uses
 to retrieve the total process CPU time,
 and the per-thread CPU time consumed by the two threads.
 The following shell session shows an example run:
 to retrieve the total process CPU time,
 and the per-thread CPU time consumed by the two threads.
 The following shell session shows an example run:
+
 .in +4n
 .nf
 $ \fB./a.out\fP
 .in +4n
 .nf
 $ \fB./a.out\fP
@@ -174,3 +180,12 @@ main(int argc, char *argv[])
 .BR pthread_self (3),
 .BR pthreads (7),
 .BR time (7)
 .BR pthread_self (3),
 .BR pthreads (7),
 .BR time (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/.