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

Side by Side Diff: src/core/SkTLS.cpp

Issue 1215393002: Remove SkThread.h, include SkMutex.h or SkAtomics.h as appropriate. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: skimagefilter Created 5 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 unified diff | Download patch
« no previous file with comments | « src/core/SkString.cpp ('k') | src/core/SkTypeface.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /*
2 * Copyright 2012 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
1 #include "SkTLS.h" 8 #include "SkTLS.h"
2 9
3 // enable to help debug TLS storage 10 // enable to help debug TLS storage
4 //#define SK_TRACE_TLS_LIFETIME 11 //#define SK_TRACE_TLS_LIFETIME
5 12
6 13
7 #ifdef SK_TRACE_TLS_LIFETIME 14 #ifdef SK_TRACE_TLS_LIFETIME
8 #include "SkThread.h" 15 #include "SkAtomics.h"
9 static int32_t gTLSRecCount; 16 static int32_t gTLSRecCount;
10 #endif 17 #endif
11 18
12 struct SkTLSRec { 19 struct SkTLSRec {
13 SkTLSRec* fNext; 20 SkTLSRec* fNext;
14 void* fData; 21 void* fData;
15 SkTLS::CreateProc fCreateProc; 22 SkTLS::CreateProc fCreateProc;
16 SkTLS::DeleteProc fDeleteProc; 23 SkTLS::DeleteProc fDeleteProc;
17 24
18 #ifdef SK_TRACE_TLS_LIFETIME 25 #ifdef SK_TRACE_TLS_LIFETIME
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // we have a new head of our chain 121 // we have a new head of our chain
115 SkTLS::PlatformSetSpecific(next); 122 SkTLS::PlatformSetSpecific(next);
116 } 123 }
117 SkDELETE(curr); 124 SkDELETE(curr);
118 break; 125 break;
119 } 126 }
120 prev = curr; 127 prev = curr;
121 curr = next; 128 curr = next;
122 } 129 }
123 } 130 }
OLDNEW
« no previous file with comments | « src/core/SkString.cpp ('k') | src/core/SkTypeface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698