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 2/2] New pthread rwlock that is more scalable.


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.


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