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

Side by Side Diff: include/ports/SkMutex_win.h

Issue 862983002: Move sync code to include/, switch from using platform define to a proxy header in core/ (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: gyp Created 5 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
« no previous file with comments | « include/ports/SkMutex_pthread.h ('k') | src/ports/SkAtomics_sync.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 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
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
OLDNEW
« no previous file with comments | « include/ports/SkMutex_pthread.h ('k') | src/ports/SkAtomics_sync.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698