| OLD | NEW |
| 1 /* Copyright 2013 The Chromium Authors. All rights reserved. | 1 /* Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. */ |
| 4 */ | |
| 5 | 4 |
| 6 #ifndef LIBRARIES_SDK_UTIL_ATOMICOPS_H_ | 5 #ifndef LIBRARIES_SDK_UTIL_ATOMICOPS_H_ |
| 7 #define LIBRARIES_SDK_UTIL_ATOMICOPS_H_ | 6 #define LIBRARIES_SDK_UTIL_ATOMICOPS_H_ |
| 8 | 7 |
| 9 #ifndef WIN32 | 8 #ifndef WIN32 |
| 10 | 9 |
| 11 #include <stdint.h> | 10 #include <stdint.h> |
| 12 | 11 |
| 13 namespace sdk_util { | 12 namespace sdk_util { |
| 14 | 13 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 } while (InterlockedCompareExchange(ptr,newval, oldval) != oldval); | 100 } while (InterlockedCompareExchange(ptr,newval, oldval) != oldval); |
| 102 | 101 |
| 103 return newval; | 102 return newval; |
| 104 } | 103 } |
| 105 | 104 |
| 106 } // namespace sdk_util | 105 } // namespace sdk_util |
| 107 | 106 |
| 108 #endif // ifndef WIN32 | 107 #endif // ifndef WIN32 |
| 109 | 108 |
| 110 #endif /* LIBRARIES_SDK_UTIL_ATOMICOPS_H_ */ | 109 #endif /* LIBRARIES_SDK_UTIL_ATOMICOPS_H_ */ |
| OLD | NEW |