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

Unified Diff: src/core/SkInstCnt.cpp

Issue 99483003: Make leak counters thread-safe (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: aling some slashes Created 7 years 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
Index: src/core/SkInstCnt.cpp
diff --git a/src/core/SkInstCnt.cpp b/src/core/SkInstCnt.cpp
index 2f9a57dc2b63eec52720e93e970f7d7c10626749..1da9efa0cd07a093437d36a13b3ccfbf99c47483 100644
--- a/src/core/SkInstCnt.cpp
+++ b/src/core/SkInstCnt.cpp
@@ -9,4 +9,11 @@
#if SK_ENABLE_INST_COUNT
bool gPrintInstCount = false;
+
+SK_DECLARE_STATIC_MUTEX(gAddInstChildMutex);
+
+SkBaseMutex& SkGetInstCntAddInstChildMutex() {
+ return gAddInstChildMutex;
+}
+
#endif
« include/core/SkInstCnt.h ('K') | « include/core/SkOnce.h ('k') | src/core/SkOnce.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698