1PTHREAD_GETCPUCLOCKID(3P) POSIX Programmer's Manual PTHREAD_GETCPUCLOCKID(3P)
2
3
4
6 This manual page is part of the POSIX Programmer's Manual. The Linux
7 implementation of this interface may differ (consult the corresponding
8 Linux manual page for details of Linux behavior), or the interface may
9 not be implemented on Linux.
10
12 pthread_getcpuclockid - access a thread CPU-time clock (ADVANCED REAL‐
13 TIME THREADS)
14
16 #include <pthread.h>
17 #include <time.h>
18
19 int pthread_getcpuclockid(pthread_t thread_id, clockid_t *clock_id);
20
21
23 The pthread_getcpuclockid() function shall return in clock_id the clock
24 ID of the CPU-time clock of the thread specified by thread_id, if the
25 thread specified by thread_id exists.
26
28 Upon successful completion, pthread_getcpuclockid() shall return zero;
29 otherwise, an error number shall be returned to indicate the error.
30
32 The pthread_getcpuclockid() function may fail if:
33
34 ESRCH The value specified by thread_id does not refer to an existing
35 thread.
36
37
38 The following sections are informative.
39
41 None.
42
44 The pthread_getcpuclockid() function is part of the Thread CPU-Time
45 Clocks option and need not be provided on all implementations.
46
48 None.
49
51 None.
52
54 clock_getcpuclockid(), clock_getres(), timer_create(), the Base Defini‐
55 tions volume of IEEE Std 1003.1-2001, <pthread.h>, <time.h>
56
58 Portions of this text are reprinted and reproduced in electronic form
59 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
60 -- Portable Operating System Interface (POSIX), The Open Group Base
61 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
62 Electrical and Electronics Engineers, Inc and The Open Group. In the
63 event of any discrepancy between this version and the original IEEE and
64 The Open Group Standard, the original IEEE and The Open Group Standard
65 is the referee document. The original Standard can be obtained online
66 at http://www.opengroup.org/unix/online.html .
67
68
69
70IEEE/The Open Group 2003 PTHREAD_GETCPUCLOCKID(3P)