diff options
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; | 
