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

Side by Side Diff: include/core/SkOnce.h

Issue 99483003: Make leak counters thread-safe (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: bug# Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/core/SkInstCnt.h ('k') | include/core/SkPostConfig.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 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 #ifndef SkOnce_DEFINED 8 #ifndef SkOnce_DEFINED
9 #define SkOnce_DEFINED 9 #define SkOnce_DEFINED
10 10
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // 141 //
142 // The release barrier in sk_once_slow guaranteed that once->done = true 142 // The release barrier in sk_once_slow guaranteed that once->done = true
143 // happens after f(arg), so by syncing to once->done = true here we're 143 // happens after f(arg), so by syncing to once->done = true here we're
144 // forcing ourselves to also wait until the effects of f(arg) are readble. 144 // forcing ourselves to also wait until the effects of f(arg) are readble.
145 acquire_barrier(); 145 acquire_barrier();
146 } 146 }
147 147
148 #undef ANNOTATE_BENIGN_RACE 148 #undef ANNOTATE_BENIGN_RACE
149 149
150 #endif // SkOnce_DEFINED 150 #endif // SkOnce_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkInstCnt.h ('k') | include/core/SkPostConfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698