This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Attachment: pgpaYUXxxlR8_.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]