Skip to content
Commit 8c0f86e3 authored by Dmitry Vyukov's avatar Dmitry Vyukov
Browse files

tsan: fix handling of pthread_cond_wait in presence of pthread_cancel

if the thread is cancelled in pthread_cond_wait, it locks the mutex before
processing pthread_cleanup stack
but tsan was missing that, thus reporting false double-lock/wrong-unlock errors
see the test for details

llvm-svn: 203648
parent 4076b348
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment