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