summaryrefslogtreecommitdiff
path: root/src/thread/__timedwait.c
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/thread/__timedwait.c
parent344ea148852ed02f280cb92f8fc1611529d60448 (diff)
downloadmusl-c68de0be2fb649f91b31080224fb6e48084eaaee.tar.gz
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/thread/__timedwait.c')
0 files changed, 0 insertions, 0 deletions