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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkInstCnt.h" 8 #include "SkInstCnt.h"
9 9
10 #if SK_ENABLE_INST_COUNT 10 #if SK_ENABLE_INST_COUNT
11 bool gPrintInstCount = false; 11 bool gPrintInstCount = false;
12
13 SK_DECLARE_STATIC_MUTEX(gAddInstChildMutex);
14
15 SkBaseMutex& SkGetInstCntAddInstChildMutex() {
16 return gAddInstChildMutex;
17 }
18
12 #endif 19 #endif
OLDNEW
« 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