diff options
author | 2012-02-23 04:43:06 +0000 | |
---|---|---|
committer | 2012-02-23 04:43:06 +0000 | |
commit | f8e0f879e23d7e4be4ba58be94119ae9828de9d7 (patch) | |
tree | 24319d0852d5f93591442efd44ee0bcaf9df8f68 /lib/libpthread/include/pthread.h | |
parent | Bring in PF-MIB to snmpd. (diff) | |
download | wireguard-openbsd-f8e0f879e23d7e4be4ba58be94119ae9828de9d7.tar.xz wireguard-openbsd-f8e0f879e23d7e4be4ba58be94119ae9828de9d7.zip |
Add pthread_condattr_{get,set}clock(), requested by aja@
Add pthread_mutex_timedlock(), requested by dcoppa@
Diffstat (limited to 'lib/libpthread/include/pthread.h')
-rw-r--r-- | lib/libpthread/include/pthread.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libpthread/include/pthread.h b/lib/libpthread/include/pthread.h index 71687aa5cba..0a3cde4f753 100644 --- a/lib/libpthread/include/pthread.h +++ b/lib/libpthread/include/pthread.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pthread.h,v 1.31 2012/01/03 16:53:48 kettenis Exp $ */ +/* $OpenBSD: pthread.h,v 1.32 2012/02/23 04:43:06 guenther Exp $ */ /* * Copyright (c) 1993, 1994 by Chris Provenzano, proven@mit.edu @@ -243,6 +243,8 @@ int pthread_mutex_destroy(pthread_mutex_t *); int pthread_mutex_init(pthread_mutex_t *, const pthread_mutexattr_t *); int pthread_mutex_lock(pthread_mutex_t *); +int pthread_mutex_timedlock(pthread_mutex_t *, + const struct timespec *); int pthread_mutex_trylock(pthread_mutex_t *); int pthread_mutex_unlock(pthread_mutex_t *); int pthread_once(pthread_once_t *, void (*) (void)); @@ -285,6 +287,10 @@ int pthread_mutex_setprioceiling(pthread_mutex_t *, int, int *); int pthread_mutexattr_getprotocol(pthread_mutexattr_t *, int *); int pthread_mutexattr_setprotocol(pthread_mutexattr_t *, int); +int pthread_condattr_getclock(const pthread_condattr_t *, + clockid_t *); +int pthread_condattr_setclock(pthread_condattr_t *, clockid_t); + int pthread_attr_getinheritsched(const pthread_attr_t *, int *); int pthread_attr_getschedparam(const pthread_attr_t *, struct sched_param *); |