diff options
author | Mathieu Chartier <mathieuc@google.com> | 2013-07-15 16:32:50 -0700 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2013-07-15 17:16:37 -0700 |
commit | 4b95e8fad803ad307fa09c11c08894544e07a731 (patch) | |
tree | 1415e3c30d673aeba09e20afe567cc757af124f0 /runtime/thread_pool_test.cc | |
parent | 57a77c8650e84aefbc9985350989242296a18e00 (diff) | |
download | art-4b95e8fad803ad307fa09c11c08894544e07a731.zip art-4b95e8fad803ad307fa09c11c08894544e07a731.tar.gz art-4b95e8fad803ad307fa09c11c08894544e07a731.tar.bz2 |
Refactor atomic integer.
Refactored atomic integer to be similar to c++11 std::atomic<int>.
Removed jdwp serial lock and reverted lock level name change from
https://googleplex-android-review.googlesource.com/#/c/327297/
Change-Id: I2229f30c4d5762a0e8c72697d6aca4683750af35
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 e2a32f5..4717ce7 100644 --- a/runtime/thread_pool_test.cc +++ b/runtime/thread_pool_test.cc @@ -95,7 +95,7 @@ TEST_F(ThreadPoolTest, StopStart) { EXPECT_EQ(0, bad_count); // Allow tasks to finish up and delete themselves. thread_pool.StartWorkers(self); - while (count.get() != num_tasks && bad_count.get() != 1) { + while (count.load() != num_tasks && bad_count.load() != 1) { usleep(200); } thread_pool.StopWorkers(self); |