diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-08-02 20:31:15 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-08-02 20:31:15 -0400 |
commit | c68de0be2fb649f91b31080224fb6e48084eaaee (patch) | |
tree | d9495283490f37833ca6e32f4b6876ca10ac06eb /src/thread/__timedwait.c | |
parent | 344ea148852ed02f280cb92f8fc1611529d60448 (diff) | |
download | musl-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