[tsan] Add support for dispatch event sources
authorKuba Brecka <kuba.brecka@gmail.com>
Thu, 7 Apr 2016 11:38:53 +0000 (11:38 +0000)
committerKuba Brecka <kuba.brecka@gmail.com>
Thu, 7 Apr 2016 11:38:53 +0000 (11:38 +0000)
commitcecb7faea23bd055ca4a2bc08b313f5dbaadde31
tree478a6053bda883aa03279c109d09a759cc1939ba
parent33c15c91a674045a47eadb559d41c77d5997af66
[tsan] Add support for dispatch event sources

GCD has APIs for event sources, we need some more release-acquire pairs to avoid false positives in TSan.

Differential Revision: http://reviews.llvm.org/D18515

llvm-svn: 265660
compiler-rt/lib/tsan/rtl/tsan_libdispatch_mac.cc
compiler-rt/test/tsan/Darwin/gcd-source-cancel.mm [new file with mode: 0644]
compiler-rt/test/tsan/Darwin/gcd-source-cancel2.mm [new file with mode: 0644]
compiler-rt/test/tsan/Darwin/gcd-source-event.mm [new file with mode: 0644]
compiler-rt/test/tsan/Darwin/gcd-source-event2.mm [new file with mode: 0644]
compiler-rt/test/tsan/Darwin/gcd-source-registration.mm [new file with mode: 0644]
compiler-rt/test/tsan/Darwin/gcd-source-registration2.mm [new file with mode: 0644]