Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Unified Diff: bench/MutexBench.cpp

Issue 419113002: Fix thread unsafe mutex initialization. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: gcc also wants impls to be inline or used. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | include/core/SkInstCnt.h » ('j') | include/core/SkInstCnt.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/MutexBench.cpp
diff --git a/bench/MutexBench.cpp b/bench/MutexBench.cpp
index 67648b5decf31bbf257eba39f495c00e1d4dbf2d..59f054c32120e8df8f9000d3d8b76b5114e6a7e1 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();
« no previous file with comments | « no previous file | include/core/SkInstCnt.h » ('j') | include/core/SkInstCnt.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698