OLD | NEW |
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 // This file is not part of the public Skia API. | 8 // This file is not part of the public Skia API. |
9 | 9 |
10 #ifndef SkSpinlock_DEFINED | 10 #ifndef SkSpinlock_DEFINED |
(...skipping 24 matching lines...) Expand all Loading... |
35 bool fLocked; | 35 bool fLocked; |
36 }; | 36 }; |
37 | 37 |
38 // For non-global-static use cases, this is normally what you want. | 38 // For non-global-static use cases, this is normally what you want. |
39 class SkSpinlock : public SkPODSpinlock { | 39 class SkSpinlock : public SkPODSpinlock { |
40 public: | 40 public: |
41 SkSpinlock() { this->release(); } | 41 SkSpinlock() { this->release(); } |
42 }; | 42 }; |
43 | 43 |
44 #endif//SkSpinlock_DEFINED | 44 #endif//SkSpinlock_DEFINED |
OLD | NEW |