summaryrefslogtreecommitdiffstats
path: root/runtime/base/mutex.h
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2014-07-17 11:25:30 -0700
committerIan Rogers <irogers@google.com>2014-07-17 11:25:30 -0700
commit37f3c968ecd04e77802fe17bb82dabc07de21ca1 (patch)
tree90699a532f8c6f964a342c0f68b2afa605d7a335 /runtime/base/mutex.h
parent1817981832a531580c83f7d71f745da4e06889c3 (diff)
downloadart-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.h2
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) {}
};