summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/section/main.c
diff options
context:
space:
mode:
authorKuba Brecka <kuba.brecka@gmail.com>2015-11-24 13:36:06 +0000
committerKuba Brecka <kuba.brecka@gmail.com>2015-11-24 13:36:06 +0000
commit440d08600b5c4dbe49515d0f106d052bb2cb053a (patch)
tree6c263ba7b533a6959a0837cf3ef6ffdf89eb3011 /lldb/packages/Python/lldbsuite/test/python_api/section/main.c
parent6cb7f7a92391327899d833c24d937fc8a1c117af (diff)
downloadbcm5719-llvm-440d08600b5c4dbe49515d0f106d052bb2cb053a.tar.gz
bcm5719-llvm-440d08600b5c4dbe49515d0f106d052bb2cb053a.zip
[tsan] Implement basic GCD interceptors for OS X
We need to intercept libdispatch APIs (dispatch_sync, dispatch_async, etc.) to add synchronization between the code that submits the task and the code that gets executed (possibly on a different thread). This patch adds release+acquire semantics for dispatch_sync, and dispatch_async (plus their "_f" and barrier variants). The synchronization is done on malloc'd contexts (separate for each submitted block/callback). Added tests to show usage of dispatch_sync and dispatch_async, for cases where we expect no warnings and for cases where TSan finds races. Differential Revision: http://reviews.llvm.org/D14745 llvm-svn: 253982
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/section/main.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud