]> git.ipfire.org Git - thirdparty/glibc.git/commit
Disable elision for any pthread_mutexattr_settype call
authorAndi Kleen <ak@linux.intel.com>
Thu, 27 Jun 2013 18:15:06 +0000 (11:15 -0700)
committerAndi Kleen <ak@linux.intel.com>
Tue, 2 Jul 2013 15:46:55 +0000 (08:46 -0700)
commit49186d21ef2d87986bccaf0a7c45c48c91b265f3
tree3b30a707c3a8e969e84d7e9ee954153d39299565
parente8c659d74e011346785355eeef03b7fb6f533c61
Disable elision for any pthread_mutexattr_settype call

PTHREAD_MUTEX_NORMAL requires deadlock for nesting, DEFAULT
does not. Since glibc uses the same value (0) disable elision
for any call to pthread_mutexattr_settype() with a 0 value.
This implies that a program can disable elision by doing
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL)

Based on a original proposal by Rich Felker.
nptl/ChangeLog
nptl/pthread_mutexattr_settype.c