summaryrefslogtreecommitdiffstats
path: root/runtime/barrier_test.cc
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2013-07-17 21:31:49 -0700
committerBrian Carlstrom <bdc@google.com>2013-07-17 21:46:12 -0700
commit93ba893c20532990a430741e0a97212900094e8c (patch)
tree019990a1957562c1f573c77297df5923cce98f47 /runtime/barrier_test.cc
parentb1eba213afaf7fa6445de863ddc9680ab99762ea (diff)
downloadart-93ba893c20532990a430741e0a97212900094e8c.zip
art-93ba893c20532990a430741e0a97212900094e8c.tar.gz
art-93ba893c20532990a430741e0a97212900094e8c.tar.bz2
Fix cpplint runtime/explicit issues
Change-Id: I352ba0b427f1ff9b22887693952b180eae0839ba
Diffstat (limited to 'runtime/barrier_test.cc')
-rw-r--r--runtime/barrier_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/barrier_test.cc b/runtime/barrier_test.cc
index 55d2d3d..d26ae9e 100644
--- a/runtime/barrier_test.cc
+++ b/runtime/barrier_test.cc
@@ -69,9 +69,9 @@ TEST_F(BarrierTest, CheckWait) {
Thread* self = Thread::Current();
ThreadPool thread_pool(num_threads);
Barrier barrier(0);
- AtomicInteger count1 = 0;
- AtomicInteger count2 = 0;
- AtomicInteger count3 = 0;
+ AtomicInteger count1(0);
+ AtomicInteger count2(0);
+ AtomicInteger count3(0);
for (int32_t i = 0; i < num_threads; ++i) {
thread_pool.AddTask(self, new CheckWaitTask(&barrier, &count1, &count2, &count3));
}
@@ -126,7 +126,7 @@ TEST_F(BarrierTest, CheckPass) {
Thread* self = Thread::Current();
ThreadPool thread_pool(num_threads);
Barrier barrier(0);
- AtomicInteger count = 0;
+ AtomicInteger count(0);
const int32_t num_tasks = num_threads * 4;
const int32_t num_sub_tasks = 128;
for (int32_t i = 0; i < num_tasks; ++i) {