repo.or.cz
/
blocksruntime.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[ASan] Add references to the issue tracker about malloc/free/new/delete mismatch...
[blocksruntime.git]
/
test
/
tsan
/
bench_acquire_release.cc
blob
9e53a7b26efabbf4a730f5d3d8966655738c85f2
1
// RUN: %clangxx_tsan %s -o %t
2
// RUN: %run %t 2>&1 | FileCheck %s
3
4
#include
"bench.h"
5
6
int
x
;
7
8
void
thread
(
int
tid
) {
9
for
(
int
i
=
0
;
i
<
bench_niter
;
i
++)
10
__atomic_fetch_add
(&
x
,
1
,
__ATOMIC_ACQ_REL
);
11
}
12
13
void
bench
() {
14
start_thread_group
(
bench_nthread
,
thread
);
15
}
16
17
// CHECK: DONE
18