diff options
author | Ian Rogers <irogers@google.com> | 2014-07-17 11:25:30 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-07-17 11:25:30 -0700 |
commit | 37f3c968ecd04e77802fe17bb82dabc07de21ca1 (patch) | |
tree | 90699a532f8c6f964a342c0f68b2afa605d7a335 /runtime/base/mutex.h | |
parent | 1817981832a531580c83f7d71f745da4e06889c3 (diff) | |
download | art-37f3c968ecd04e77802fe17bb82dabc07de21ca1.zip art-37f3c968ecd04e77802fe17bb82dabc07de21ca1.tar.gz art-37f3c968ecd04e77802fe17bb82dabc07de21ca1.tar.bz2 |
Avoid direct use of QuasiAtomic by using Atomic.
Change-Id: I92d0f822cddb2085de7cbb4c44c3a429081892a2
Diffstat (limited to 'runtime/base/mutex.h')
-rw-r--r-- | runtime/base/mutex.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/base/mutex.h b/runtime/base/mutex.h index 8d2cd07..b0f6e0b 100644 --- a/runtime/base/mutex.h +++ b/runtime/base/mutex.h @@ -160,7 +160,7 @@ class BaseMutex { // Number of times the Mutex has been contended. AtomicInteger contention_count; // Sum of time waited by all contenders in ns. - volatile uint64_t wait_time; + Atomic<uint64_t> wait_time; void AddToWaitTime(uint64_t value); ContentionLogData() : wait_time(0) {} }; |