summaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-08-02 20:31:15 -0400
committerRich Felker <dalias@aerifal.cx>2011-08-02 20:31:15 -0400
commitc68de0be2fb649f91b31080224fb6e48084eaaee (patch)
treed9495283490f37833ca6e32f4b6876ca10ac06eb /src/internal
parent344ea148852ed02f280cb92f8fc1611529d60448 (diff)
downloadmusl-c68de0be2fb649f91b31080224fb6e48084eaaee.tar.gz
musl-c68de0be2fb649f91b31080224fb6e48084eaaee.tar.bz2
musl-c68de0be2fb649f91b31080224fb6e48084eaaee.tar.xz
musl-c68de0be2fb649f91b31080224fb6e48084eaaee.zip
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.
Diffstat (limited to 'src/internal')
0 files changed, 0 insertions, 0 deletions