diff options
| author | Mike Frysinger <vapier@gentoo.org> | 2005-09-08 04:07:49 +0000 | 
|---|---|---|
| committer | Mike Frysinger <vapier@gentoo.org> | 2005-09-08 04:07:49 +0000 | 
| commit | c0be1ede0e06e8318ee99ecb6eb55f7b84c67cbf (patch) | |
| tree | e70a1a1ef3b4b61fe2e76974ed0f4a54dd116248 /libpthread/linuxthreads/sysdeps/pthread | |
| parent | 57a871021bca62c5e0be7210c5a1119c90658d83 (diff) | |
sync with glibc and import pthread_rwlock_timed{rd,wr}lock in the process
Diffstat (limited to 'libpthread/linuxthreads/sysdeps/pthread')
| -rw-r--r-- | libpthread/linuxthreads/sysdeps/pthread/pthread.h | 20 | 
1 files changed, 9 insertions, 11 deletions
diff --git a/libpthread/linuxthreads/sysdeps/pthread/pthread.h b/libpthread/linuxthreads/sysdeps/pthread/pthread.h index aaab510c3..6613cab88 100644 --- a/libpthread/linuxthreads/sysdeps/pthread/pthread.h +++ b/libpthread/linuxthreads/sysdeps/pthread/pthread.h @@ -462,27 +462,25 @@ extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock) __THROW;  /* Try to acquire read lock for RWLOCK.  */  extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock) __THROW; +# ifdef __USE_XOPEN2K +/* Try to acquire read lock for RWLOCK or return after specfied time.  */ +extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock, +				       __const struct timespec *__restrict +				       __abstime) __THROW; +# endif +  /* Acquire write lock for RWLOCK.  */  extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock) __THROW;  /* Try to acquire write lock for RWLOCK.  */  extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock) __THROW; -#if 0 -/* Not yet implemented in uClibc! */ - -#ifdef __USE_XOPEN2K -/* Try to acquire read lock for RWLOCK or return after specfied time.  */ -extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock, -				       __const struct timespec *__restrict -				       __abstime) __THROW; +# ifdef __USE_XOPEN2K  /* Try to acquire write lock for RWLOCK or return after specfied time.  */  extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock,  				       __const struct timespec *__restrict  				       __abstime) __THROW; -#endif -#endif - +# endif  /* Unlock RWLOCK.  */  extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock) __THROW;  | 
