OLD | NEW |
1 // | 1 /* |
2 // SkTLS.h | 2 * Copyright 2012 Google Inc. |
3 // | 3 * |
4 // | 4 * Use of this source code is governed by a BSD-style license that can be |
5 // Created by Mike Reed on 4/21/12. | 5 * found in the LICENSE file. |
6 // Copyright (c) 2012 __MyCompanyName__. All rights reserved. | 6 */ |
7 // | |
8 | 7 |
9 #ifndef SkTLS_DEFINED | 8 #ifndef SkTLS_DEFINED |
10 #define SkTLS_DEFINED | 9 #define SkTLS_DEFINED |
11 | 10 |
12 #include "SkTypes.h" | 11 #include "SkTypes.h" |
13 | 12 |
14 /** | 13 /** |
15 * Maintains a per-thread cache, using a CreateProc as the key into that cache. | 14 * Maintains a per-thread cache, using a CreateProc as the key into that cache. |
16 */ | 15 */ |
17 class SkTLS { | 16 class SkTLS { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 /** | 74 /** |
76 * Will delete our internal list. To be called by the platform if/when its | 75 * Will delete our internal list. To be called by the platform if/when its |
77 * TLS slot is deleted (often at thread shutdown). | 76 * TLS slot is deleted (often at thread shutdown). |
78 * | 77 * |
79 * Public *only* for the platform's use, not to be called by a client. | 78 * Public *only* for the platform's use, not to be called by a client. |
80 */ | 79 */ |
81 static void Destructor(void* ptr); | 80 static void Destructor(void* ptr); |
82 }; | 81 }; |
83 | 82 |
84 #endif | 83 #endif |
OLD | NEW |