GNOME Bugzilla – Bug 659423
Use adaptive mutexes when available
Last modified: 2011-09-22 04:55:03 UTC
These are supposedly better on multi-cpu systems - and who doesn't have multiple cpus nowadays. One single-processor systems, they are identical to normal mutexes.
Created attachment 196891 [details] [review] Use adaptive mutexes when available
Review of attachment 196891 [details] [review]: Link to who says this? From GNU libc "Mutexes" info page, it says the default is "timed" mutexes. The adaptive ones don't support pthread_mutex_timedlock(), but we don't call that, so things are fine. 5 years later someone will quite possibly want to know what "supposedly" means - can you update the commit message with where you saw it and/or the above data?
this NSPR bug: https://bugzilla.mozilla.org/show_bug.cgi?id=132089 has a link to an interesting post on comp.programming.threads with further information.
Perfect! That link makes a lot of sense. A simple: See https://bugzilla.mozilla.org/show_bug.cgi?id=132089 In the commit message would work for me.
The following fix has been pushed: cedc822 Use adaptive mutexes when available
Created attachment 197208 [details] [review] Use adaptive mutexes when available These are supposedly better on multi-cpu systems - and who doesn't have multiple cpus nowadays. One single-processor systems, they are identical to normal mutexes. See e.g. http://bugzilla.mozilla.org/show_bug.cgi?id=132089