commit | c68de0be2fb649f91b31080224fb6e48084eaaee | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Tue Aug 02 20:31:15 2011 -0400 |
committer | Rich Felker <dalias@aerifal.cx> | Tue Aug 02 20:31:15 2011 -0400 |
tree | d9495283490f37833ca6e32f4b6876ca10ac06eb | |
parent | 344ea148852ed02f280cb92f8fc1611529d60448 [diff] |
avoid accessing mutex memory after atomic unlock this change is needed to fix a race condition and ensure that it's possible to unlock and destroy or unmap the mutex as soon as pthread_mutex_lock succeeds. POSIX explicitly gives such an example in the rationale and requires an implementation to allow such usage.