OSDN Git Service
(root)
/
linuxjm
/
LDP_man-pages.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git]
/
original
/
man3
/
pthread_getcpuclockid.3
diff --git
a/original/man3/pthread_getcpuclockid.3
b/original/man3/pthread_getcpuclockid.3
index
76552ae
..
c48b802
100644
(file)
--- a/
original/man3/pthread_getcpuclockid.3
+++ b/
original/man3/pthread_getcpuclockid.3
@@
-1,6
+1,7
@@
.\" Copyright (c) 2009 Linux Foundation, written by Michael Kerrisk
.\" <mtk.manpages@gmail.com>
.\"
.\" Copyright (c) 2009 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.
.\" 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.
.\"
.\" 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_GETCPUCLOCKID 3 20
09-02-08
"Linux" "Linux Programmer's Manual"
+.TH PTHREAD_GETCPUCLOCKID 3 20
14-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
@@
-29,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
@@
-60,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
@@
-79,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
@@
-172,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/.