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 06/11] Add lock elision to rwlocks


> We cannot use elision for trywrlock() or wrlock() because this would
> change the semantics and violate POSIX semantics.  See the guidelines.
> Just using elision in rdlock and tryrdlock is okay.

The rwlock implement the same semantics now, as the normal locks.
Only when you set elision explicitely in the program does the
write lock elide. The read lock always elides.

I didn't make this clear in the description, but that is what the 
current code does. I'll fix the description.

-Andi


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