aboutsummaryrefslogtreecommitdiffstats
path: root/include/time.h
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2008-03-22 09:59:20 +0000
committerDavid Xu <davidxu@FreeBSD.org>2008-03-22 09:59:20 +0000
commit9939a13667567dd4b0c3496953d99b87a6995208 (patch)
tree015a0dec5360aa70620f168434fc00e9c526fd1c /include/time.h
parent698b1a6643b3010e921a719cfc0bf7fb13781c00 (diff)
downloadsrc-9939a13667567dd4b0c3496953d99b87a6995208.tar.gz
src-9939a13667567dd4b0c3496953d99b87a6995208.zip
Add POSIX pthread API pthread_getcpuclockid() to get a thread's cpu
time clock id.
Notes
Notes: svn path=/head/; revision=177494
Diffstat (limited to 'include/time.h')
-rw-r--r--include/time.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/time.h b/include/time.h
index 69a41c2451ee..d28d9b48b905 100644
--- a/include/time.h
+++ b/include/time.h
@@ -108,6 +108,7 @@ typedef __timer_t timer_t;
#define CLOCK_MONOTONIC_PRECISE 11 /* FreeBSD-specific. */
#define CLOCK_MONOTONIC_FAST 12 /* FreeBSD-specific. */
#define CLOCK_SECOND 13 /* FreeBSD-specific. */
+#define CLOCK_THREAD_CPUTIME_ID 14
#endif /* !defined(CLOCK_REALTIME) && __POSIX_VISIBLE >= 200112 */
#if !defined(TIMER_ABSTIME) && __POSIX_VISIBLE >= 200112