| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef SkThread_DEFINED | 10 #ifndef SkThread_DEFINED |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 void release() { | 57 void release() { |
| 58 if (fMutex) { | 58 if (fMutex) { |
| 59 fMutex->release(); | 59 fMutex->release(); |
| 60 fMutex = NULL; | 60 fMutex = NULL; |
| 61 } | 61 } |
| 62 } | 62 } |
| 63 | 63 |
| 64 private: | 64 private: |
| 65 SkBaseMutex* fMutex; | 65 SkBaseMutex* fMutex; |
| 66 }; | 66 }; |
| 67 #define SkAutoMutexAcquire(...) SK_REQUIRE_LOCAL_VAR(SkAutoMutexAcquire) |
| 67 | 68 |
| 68 #endif | 69 #endif |
| OLD | NEW |