[PATCH 2/2] New pthread rwlock that is more scalable.

Torvald Riegel triegel@redhat.com
Tue Jan 10 11:02:00 GMT 2017


On Tue, 2017-01-10 at 01:36 -0500, Carlos O'Donell wrote:
> Is it really necessary to switch from unlocked/locked
> to 'not acquired'/acquired?

I think it's better (eg, it works better with having an owner and having
reader/writer ownership (do you lock "as a reader"? "for reading"?...),
we say "lock acquisiton" or "mutex acquisition" instead of "lock
locking", etc.).  It also matches that we use "acquire" in our internal
documentation (though one may say that this is a biased argument, given
that I've been pushing for this).  It matches acquire and release MO.

The pretty printers are new this release, so the change shouldn't break
existing uses.  I should adapt the mutex printers too for consistency, I
guess.



More information about the Libc-alpha mailing list