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: TSX lock elision for glibc v12


On Fri, Jun 21, 2013 at 05:00:29PM +0200, Torvald Riegel wrote:
> Or should we just not try to support explicit initialization of DEFAULT
> mutexes *via settype()* and just make them NORMAL mutexes by default?
> This way, we wouldn't need to introduce a new public
> PTHREAD_MUTEX_DEFAULT value, and could still disambiguate DEFAULT from
> NORMAL when the initialization happens via static initializers or
> default mutex attributes (ie, NULL parameter).

I'm fine with this. I don't think there's any sane reason to call
pthread_mutexattr_settype when making default-type mutexes, and I
doubt any real-world apps do it. If they do, it's their fault for
being slow; they're performing unnecessary, bloated operations in any
case and should be fixed.

Rich


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