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_INTERFACE_STATIC_INSTANCE_H_ | 11 #ifndef WEBRTC_SYSTEM_WRAPPERS_INTERFACE_STATIC_INSTANCE_H_ |
12 #define WEBRTC_SYSTEM_WRAPPERS_INTERFACE_STATIC_INSTANCE_H_ | 12 #define WEBRTC_SYSTEM_WRAPPERS_INTERFACE_STATIC_INSTANCE_H_ |
13 | 13 |
14 #include <assert.h> | 14 #include <assert.h> |
15 | 15 |
16 #include "webrtc/system_wrappers/interface/critical_section_wrapper.h" | 16 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
17 #ifdef _WIN32 | 17 #ifdef _WIN32 |
18 #include "webrtc/system_wrappers/interface/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 |
27 }; | 27 }; |
28 enum CreateOperation { | 28 enum CreateOperation { |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 } | 144 } |
145 return NULL; | 145 return NULL; |
146 } | 146 } |
147 #endif // #ifndef _WIN32 | 147 #endif // #ifndef _WIN32 |
148 return instance; | 148 return instance; |
149 } | 149 } |
150 | 150 |
151 } // namspace webrtc | 151 } // namspace webrtc |
152 | 152 |
153 #endif // WEBRTC_SYSTEM_WRAPPERS_INTERFACE_STATIC_INSTANCE_H_ | 153 #endif // WEBRTC_SYSTEM_WRAPPERS_INTERFACE_STATIC_INSTANCE_H_ |
OLD | NEW |