OLD | NEW |
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 SkMutex_win_DEFINED | 8 #ifndef SkMutex_win_DEFINED |
9 #define SkMutex_win_DEFINED | 9 #define SkMutex_win_DEFINED |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 SkBaseMutex& operator=(const SkBaseMutex&); | 70 SkBaseMutex& operator=(const SkBaseMutex&); |
71 }; | 71 }; |
72 | 72 |
73 class SkMutex : public SkBaseMutex { }; | 73 class SkMutex : public SkBaseMutex { }; |
74 | 74 |
75 // Windows currently provides no documented means of POD initializing a CRITICAL
_SECTION. | 75 // Windows currently provides no documented means of POD initializing a CRITICAL
_SECTION. |
76 // As a result, it is illegal to SK_DECLARE_STATIC_MUTEX in a function. | 76 // As a result, it is illegal to SK_DECLARE_STATIC_MUTEX in a function. |
77 #define SK_DECLARE_STATIC_MUTEX(name) namespace{} static SkBaseMutex name | 77 #define SK_DECLARE_STATIC_MUTEX(name) namespace{} static SkBaseMutex name |
78 | 78 |
79 #endif | 79 #endif |
OLD | NEW |