This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] rwlock: Fix explicit hand-over.
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: Torvald Riegel <triegel at redhat dot com>
- Cc: GLIBC Devel <libc-alpha at sourceware dot org>, Waiman Long <longman at redhat dot com>, Carlos O'Donell <codonell at redhat dot com>
- Date: Sat, 25 Mar 2017 21:17:20 +0100
- Subject: Re: [PATCH] rwlock: Fix explicit hand-over.
- Authentication-results: sourceware.org; auth=none
- References: <1490471341.26906.366.camel@redhat.com>
* Torvald Riegel:
> + bool registered_while_in_write_phase = false;
> if (__glibc_likely ((r & PTHREAD_RWLOCK_WRPHASE) == 0))
> return 0;
> + else
> + registered_while_in_write_phase = true;
Sorry, this doesn't look quite right. Isn't
registered_while_in_write_phase always true?