X-Git-Url: http://git.osdn.net/view?p=linuxjm%2FLDP_man-pages.git;a=blobdiff_plain;f=original%2Fman3%2Fpthread_getcpuclockid.3;h=c48b802bbaf5a25dbdafa3d78c3c6029cb5fe83e;hp=95b777769f7ff8fb283a8f112a652db88c572bf1;hb=4ea6bb24817f6f049d6bbc90ecd77a869876f9b0;hpb=e9e6c106d11bd9cca5f4a6585364b93f5ae3007a diff --git a/original/man3/pthread_getcpuclockid.3 b/original/man3/pthread_getcpuclockid.3 index 95b77776..c48b802b 100644 --- a/original/man3/pthread_getcpuclockid.3 +++ b/original/man3/pthread_getcpuclockid.3 @@ -23,7 +23,7 @@ .\" 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 @@ -31,7 +31,7 @@ pthread_getcpuclockid \- retrieve ID of a thread's CPU time clock .B #include .B #include -.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 @@ -62,6 +62,11 @@ No thread with the ID 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 @@ -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: + .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) +.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/.