commit | 7fe58d3511387ab6c57909f6e4baef58acd6bd56 | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Mon Oct 03 00:09:08 2011 -0400 |
committer | Rich Felker <dalias@aerifal.cx> | Mon Oct 03 00:09:08 2011 -0400 |
tree | c41921898477f2269c44b68b1befce6e6660cc0b | |
parent | b3b00d11e87926b553429d341b020a8a070e4ea1 [diff] |
use count=0 instead of 1 for recursive mutex with only one lock reference this simplifies the code paths slightly, but perhaps what's nicer is that it makes recursive mutexes fully reentrant, i.e. locking and unlocking from a signal handler works even if the interrupted code was in the middle of locking or unlocking.