diff options
author | 2013-06-17 19:11:54 +0000 | |
---|---|---|
committer | 2013-06-17 19:11:54 +0000 | |
commit | 7b36c281ba1c99d528efca950572c207acd2e184 (patch) | |
tree | f5c2b481403a1c10e5fb3838834ab4fd89d0397e /lib/libpthread/include/pthread.h | |
parent | 2nd part of: (diff) | |
download | wireguard-openbsd-7b36c281ba1c99d528efca950572c207acd2e184.tar.xz wireguard-openbsd-7b36c281ba1c99d528efca950572c207acd2e184.zip |
Add support for the _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME options,
including CLOCK_{PROCESS,THREAD}_CPUTIME_ID constants and
{clock,pthread}_getcpuclockid() functions.
Worked out at t2k13 with help from tedu@ and matthew@ and testing by aja@
ok matthew@
Diffstat (limited to 'lib/libpthread/include/pthread.h')
-rw-r--r-- | lib/libpthread/include/pthread.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libpthread/include/pthread.h b/lib/libpthread/include/pthread.h index de6a8096483..7329429d750 100644 --- a/lib/libpthread/include/pthread.h +++ b/lib/libpthread/include/pthread.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pthread.h,v 1.39 2012/12/05 23:20:05 deraadt Exp $ */ +/* $OpenBSD: pthread.h,v 1.40 2013/06/17 19:11:54 guenther Exp $ */ /* * Copyright (c) 1993, 1994 by Chris Provenzano, proven@mit.edu @@ -309,6 +309,10 @@ int pthread_spin_destroy(pthread_spinlock_t *); int pthread_spin_trylock(pthread_spinlock_t *); int pthread_spin_lock(pthread_spinlock_t *); int pthread_spin_unlock(pthread_spinlock_t *); + +#if __POSIX_VISIBLE >= 200112 +int pthread_getcpuclockid(pthread_t, clockid_t *); +#endif __END_DECLS #endif /* _PTHREAD_H_ */ |