| 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 #ifndef SkAtomics_DEFINED | 8 #ifndef SkAtomics_DEFINED |
| 9 #define SkAtomics_DEFINED | 9 #define SkAtomics_DEFINED |
| 10 | 10 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 template <typename T> | 127 template <typename T> |
| 128 T sk_acquire_load(T* ptr) { return sk_atomic_load(ptr, sk_memory_order_acquire);
} | 128 T sk_acquire_load(T* ptr) { return sk_atomic_load(ptr, sk_memory_order_acquire);
} |
| 129 | 129 |
| 130 template <typename T> | 130 template <typename T> |
| 131 void sk_release_store(T* ptr, T val) { sk_atomic_store(ptr, val, sk_memory_order
_release); } | 131 void sk_release_store(T* ptr, T val) { sk_atomic_store(ptr, val, sk_memory_order
_release); } |
| 132 | 132 |
| 133 inline void sk_membar_acquire__after_atomic_dec() {} | 133 inline void sk_membar_acquire__after_atomic_dec() {} |
| 134 inline void sk_membar_acquire__after_atomic_conditional_inc() {} | 134 inline void sk_membar_acquire__after_atomic_conditional_inc() {} |
| 135 | 135 |
| 136 #endif//SkAtomics_DEFINED | 136 #endif//SkAtomics_DEFINED |
| OLD | NEW |