From 41c1a3e3e6683fe9b4edf023cd5a862fd79746b0 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 12 Apr 2010 01:54:24 +0000 Subject: Add support for pthread_rwlock_timed locks. from brad. ok kurt, who's too busy to commit --- lib/libpthread/include/pthread.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/libpthread/include') 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 *); -- cgit v1.2.3