diff options
author | Ian Rogers <irogers@google.com> | 2013-11-19 18:00:50 -0800 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2013-12-20 08:01:57 -0800 |
commit | b122a4bbed34ab22b4c1541ee25e5cf22f12a926 (patch) | |
tree | 624f16271f4481a8fd5aa2f607385f490dc7b3ae /runtime/thread_pool_test.cc | |
parent | e40687d053b89c495b6fbeb7a766b01c9c7e039c (diff) | |
download | art-b122a4bbed34ab22b4c1541ee25e5cf22f12a926.zip art-b122a4bbed34ab22b4c1541ee25e5cf22f12a926.tar.gz art-b122a4bbed34ab22b4c1541ee25e5cf22f12a926.tar.bz2 |
Tidy up memory barriers.
Change-Id: I937ea93e6df1835ecfe2d4bb7d84c24fe7fc097b
Diffstat (limited to 'runtime/thread_pool_test.cc')
-rw-r--r-- | runtime/thread_pool_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/thread_pool_test.cc b/runtime/thread_pool_test.cc index 1b22361..2029d4b 100644 --- a/runtime/thread_pool_test.cc +++ b/runtime/thread_pool_test.cc @@ -94,7 +94,7 @@ TEST_F(ThreadPoolTest, StopStart) { EXPECT_EQ(0, bad_count); // Allow tasks to finish up and delete themselves. thread_pool.StartWorkers(self); - while (count.load() != num_tasks && bad_count.load() != 1) { + while (count.Load() != num_tasks && bad_count.Load() != 1) { usleep(200); } thread_pool.StopWorkers(self); |