diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2010-04-12 01:54:24 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2010-04-12 01:54:24 +0000 |
commit | 41c1a3e3e6683fe9b4edf023cd5a862fd79746b0 (patch) | |
tree | efce53ab5ec5de44259e6fae7768cc9358cbce71 /lib/libpthread/include | |
parent | 46975a2a516f3489a5273d971ef327e5c5fd681e (diff) |
Add support for pthread_rwlock_timed locks.
from brad. ok kurt, who's too busy to commit
Diffstat (limited to 'lib/libpthread/include')
-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 e572fae8f73..42367b1bfaf 100644 --- a/lib/libpthread/include/pthread.h +++ b/lib/libpthread/include/pthread.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pthread.h,v 1.29 2008/12/18 09:30:32 guenther Exp $ */ +/* $OpenBSD: pthread.h,v 1.30 2010/04/12 01:54:23 tedu Exp $ */ /* * Copyright (c) 1993, 1994 by Chris Provenzano, proven@mit.edu @@ -250,6 +250,10 @@ int pthread_rwlock_destroy(pthread_rwlock_t *); int pthread_rwlock_init(pthread_rwlock_t *, const pthread_rwlockattr_t *); int pthread_rwlock_rdlock(pthread_rwlock_t *); +int pthread_rwlock_timedrdlock(pthread_rwlock_t *, + const struct timespec *); +int pthread_rwlock_timedwrlock(pthread_rwlock_t *, + const struct timespec *); int pthread_rwlock_tryrdlock(pthread_rwlock_t *); int pthread_rwlock_trywrlock(pthread_rwlock_t *); int pthread_rwlock_unlock(pthread_rwlock_t *); |