[PATCH] cygwin: Declare pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Jan 22 08:51:00 GMT 2018


On Jan 21 23:51, Yaakov Selkowitz wrote:
> These were added in commit 8128f5482f2b1889e2336488e9d45a33c9972d11 but
> without their public declarations.
> 
> Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
> ---
>  winsup/cygwin/include/pthread.h | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/winsup/cygwin/include/pthread.h b/winsup/cygwin/include/pthread.h
> index 6d3bfd0eb..3dfc2bc80 100644
> --- a/winsup/cygwin/include/pthread.h
> +++ b/winsup/cygwin/include/pthread.h
> @@ -191,8 +191,12 @@ int pthread_spin_unlock (pthread_spinlock_t *);
>  int pthread_rwlock_destroy (pthread_rwlock_t *rwlock);
>  int pthread_rwlock_init (pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr);
>  int pthread_rwlock_rdlock (pthread_rwlock_t *rwlock);
> +int pthread_rwlock_timedrdlock (pthread_rwlock_t *rwlock,
> +				const struct timespec *abstime);
>  int pthread_rwlock_tryrdlock (pthread_rwlock_t *rwlock);
>  int pthread_rwlock_wrlock (pthread_rwlock_t *rwlock);
> +int pthread_rwlock_timedwrlock (pthread_rwlock_t *rwlock,
> +				const struct timespec *abstime);
>  int pthread_rwlock_trywrlock (pthread_rwlock_t *rwlock);
>  int pthread_rwlock_unlock (pthread_rwlock_t *rwlock);
>  int pthread_rwlockattr_init (pthread_rwlockattr_t *rwlockattr);
> -- 
> 2.15.1

Ouch, thanks for catching.  ACK.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20180122/d8e91237/attachment.sig>


More information about the Cygwin-patches mailing list