aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/MutexBench.cpp
diff options
context:
space:
mode:
authorGravatar bungeman <bungeman@google.com>2014-07-25 11:52:47 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-07-25 11:52:48 -0700
commitd6aeb6dc8fe21066f1a2c4813a4256a3acd3edf5 (patch)
tree9f2eb3a4e8ece352a5d2ad05a78b3ad1ad1cbb03 /bench/MutexBench.cpp
parent6c18c80c866dc1d89f0a76c93d62bbff886e3c2b (diff)
Fix thread unsafe mutex initialization.
BUG=skia:2779 R=robertphillips@google.com, mtklein@google.com, reed@android.com, bsalomon@google.com Author: bungeman@google.com Review URL: https://codereview.chromium.org/419113002
Diffstat (limited to 'bench/MutexBench.cpp')
-rw-r--r--bench/MutexBench.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/MutexBench.cpp b/bench/MutexBench.cpp
index 67648b5dec..59f054c321 100644
--- a/bench/MutexBench.cpp
+++ b/bench/MutexBench.cpp
@@ -19,7 +19,7 @@ protected:
}
virtual void onDraw(const int loops, SkCanvas*) {
- SK_DECLARE_STATIC_MUTEX(mu);
+ SkMutex mu;
for (int i = 0; i < loops; i++) {
mu.acquire();
mu.release();