[PATCH] Fix lost wake-up when pthread_rwlock_timedrwlock times out.

Siddhesh Poyarekar siddhesh@redhat.com
Thu Jun 4 08:43:00 GMT 2015


On Wed, Apr 29, 2015 at 06:14:53PM +0200, Torvald Riegel wrote:
> diff --git a/nptl/pthread_rwlock_timedwrlock.c b/nptl/pthread_rwlock_timedwrlock.c
> index 416f6e2..958d6db 100644
> --- a/nptl/pthread_rwlock_timedwrlock.c
> +++ b/nptl/pthread_rwlock_timedwrlock.c
> @@ -32,6 +32,7 @@ pthread_rwlock_timedwrlock (rwlock, abstime)
>       const struct timespec *abstime;
>  {
>    int result = 0;
> +  int wake_readers = 0;
>  

Sorry, one small nit I missed and saw when reviewing your other patch:
please make wake_readers bool.

Siddhesh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150604/cdcce291/attachment.sig>


More information about the Libc-alpha mailing list