| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_SYSTEM_WRAPPERS_INCLUDE_STATIC_INSTANCE_H_ | 11 #ifndef WEBRTC_SYSTEM_WRAPPERS_INCLUDE_STATIC_INSTANCE_H_ |
| 12 #define WEBRTC_SYSTEM_WRAPPERS_INCLUDE_STATIC_INSTANCE_H_ | 12 #define WEBRTC_SYSTEM_WRAPPERS_INCLUDE_STATIC_INSTANCE_H_ |
| 13 | 13 |
| 14 #include <assert.h> | 14 #include <assert.h> |
| 15 | 15 |
| 16 #include "webrtc/rtc_base/criticalsection.h" | 16 #include "webrtc/base/criticalsection.h" |
| 17 #ifdef _WIN32 | 17 #ifdef _WIN32 |
| 18 #include "webrtc/system_wrappers/include/fix_interlocked_exchange_pointer_win.h" | 18 #include "webrtc/system_wrappers/include/fix_interlocked_exchange_pointer_win.h" |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 namespace webrtc { | 21 namespace webrtc { |
| 22 | 22 |
| 23 enum CountOperation { | 23 enum CountOperation { |
| 24 kRelease, | 24 kRelease, |
| 25 kAddRef, | 25 kAddRef, |
| 26 kAddRefNoCreate | 26 kAddRefNoCreate |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 } | 138 } |
| 139 return NULL; | 139 return NULL; |
| 140 } | 140 } |
| 141 #endif // #ifndef _WIN32 | 141 #endif // #ifndef _WIN32 |
| 142 return instance; | 142 return instance; |
| 143 } | 143 } |
| 144 | 144 |
| 145 } // namspace webrtc | 145 } // namspace webrtc |
| 146 | 146 |
| 147 #endif // WEBRTC_SYSTEM_WRAPPERS_INCLUDE_STATIC_INSTANCE_H_ | 147 #endif // WEBRTC_SYSTEM_WRAPPERS_INCLUDE_STATIC_INSTANCE_H_ |
| OLD | NEW |