fix and optimize non-default-type mutex behavior
authorRich Felker <dalias@aerifal.cx>
Tue, 8 Mar 2011 08:41:05 +0000 (03:41 -0500)
committerRich Felker <dalias@aerifal.cx>
Tue, 8 Mar 2011 08:41:05 +0000 (03:41 -0500)
problem 1: mutex type from the attribute was being ignored by
pthread_mutex_init, so recursive/errorchecking mutexes were never
being used at all.

problem 2: ownership of recursive mutexes was not being enforced at
unlock time.


No differences found