summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/tsan/signal_cond.cc
Commit message (Collapse)AuthorAgeFilesLines
* [tsan] Change comments referencing code.google.com to point to GitHub ↵Kuba Brecka2015-11-301-1/+1
| | | | | | | | | | instead. NFC. Changing comments that have references to code.google.com to point to GitHub instead, because the current links are not redirected properly (they instead redirect to different issues, mostly ASan). NFC. Differential Revision: http://reviews.llvm.org/D15053 llvm-svn: 254300
* [tsan] Replace pthread semaphore in signal_cond.cc with barrier_waitKuba Brecka2015-11-241-5/+7
| | | | | | | | | | Pthread semaphores are not available on OS X. Let's replace sem_wait/sem_post with barrier_wait, which makes the test pass on OS X. I know that sem_wait/sem_post is intercepted by TSan, whereas barrier_wait is TSan-invisible, but the purpose of the test is not affected by this. Also, let's properly initialize the mutex and cond variables. Differential Revision: http://reviews.llvm.org/D14924 llvm-svn: 253980
* tsan: handle async signals while blocked in pthread_cond_waitDmitry Vyukov2015-04-081-0/+51
Fixes https://code.google.com/p/thread-sanitizer/issues/detail?id=91 llvm-svn: 234394
OpenPOWER on IntegriCloud