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

Side by Side Diff: src/core/SkSharedMutex.h

Issue 1369333004: Move SkAtomics.h to private. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 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/SkShader.cpp ('k') | src/core/SkSharedMutex.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 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 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 SkSharedLock_DEFINED 8 #ifndef SkSharedLock_DEFINED
9 #define SkSharedLock_DEFINED 9 #define SkSharedLock_DEFINED
10 10
11 #include "SkAtomics.h" 11 #include "../private/SkAtomics.h"
12 #include "SkSemaphore.h" 12 #include "SkSemaphore.h"
13 #include "SkTypes.h" 13 #include "SkTypes.h"
14 14
15 #ifdef SK_DEBUG 15 #ifdef SK_DEBUG
16 #include "SkMutex.h" 16 #include "SkMutex.h"
17 #include "../private/SkUniquePtr.h" 17 #include "../private/SkUniquePtr.h"
18 #endif // SK_DEBUG 18 #endif // SK_DEBUG
19 19
20 // There are two shared lock implementations one debug the other is high perform ance. They implement 20 // There are two shared lock implementations one debug the other is high perform ance. They implement
21 // an interface similar to pthread's rwlocks. 21 // an interface similar to pthread's rwlocks.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 SkSemaphore fExclusiveQueue; 63 SkSemaphore fExclusiveQueue;
64 #endif // SK_DEBUG 64 #endif // SK_DEBUG
65 }; 65 };
66 66
67 #ifndef SK_DEBUG 67 #ifndef SK_DEBUG
68 inline void SkSharedMutex::assertHeld() const {}; 68 inline void SkSharedMutex::assertHeld() const {};
69 inline void SkSharedMutex::assertHeldShared() const {}; 69 inline void SkSharedMutex::assertHeldShared() const {};
70 #endif // SK_DEBUG 70 #endif // SK_DEBUG
71 71
72 #endif // SkSharedLock_DEFINED 72 #endif // SkSharedLock_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkShader.cpp ('k') | src/core/SkSharedMutex.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698