OSDN Git Service
(root)
/
android-x86
/
bionic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5c04c5
)
Fix pthread_barrier_smoke test (part 2).
author
Yabin Cui
<yabinc@google.com>
Tue, 2 May 2017 23:18:13 +0000
(16:18 -0700)
committer
Yabin Cui
<yabinc@google.com>
Tue, 2 May 2017 23:18:13 +0000
(16:18 -0700)
Bug:http://b/
37652807
Test: run bionic-unit-tests.
Change-Id: Iaea553177956c5d08f754210273637f69d888c20
tests/pthread_test.cpp
patch
|
blob
|
history
diff --git
a/tests/pthread_test.cpp
b/tests/pthread_test.cpp
index
fbf14c1
..
d64bc48
100755
(executable)
--- a/
tests/pthread_test.cpp
+++ b/
tests/pthread_test.cpp
@@
-1964,6
+1964,7
@@
static void BarrierTestHelper(BarrierTestHelperArg* arg) {
ASSERT_EQ(0, result);
}
int mask = arg->data->finished_mask.fetch_or(1 << arg->id);
+ mask |= 1 << arg->id;
if (mask == ((1 << arg->data->thread_count) - 1)) {
ASSERT_EQ(1, arg->data->serial_thread_count);
arg->data->finished_iteration_count++;