OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2004 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_BASE_CRITICALSECTION_H_ | 11 #ifndef WEBRTC_RTC_BASE_CRITICALSECTION_H_ |
12 #define WEBRTC_BASE_CRITICALSECTION_H_ | 12 #define WEBRTC_RTC_BASE_CRITICALSECTION_H_ |
13 | 13 |
14 #include "webrtc/base/atomicops.h" | 14 #include "webrtc/base/atomicops.h" |
15 #include "webrtc/base/checks.h" | 15 #include "webrtc/base/checks.h" |
16 #include "webrtc/base/constructormagic.h" | 16 #include "webrtc/base/constructormagic.h" |
17 #include "webrtc/base/thread_annotations.h" | 17 #include "webrtc/base/thread_annotations.h" |
18 #include "webrtc/base/platform_thread_types.h" | 18 #include "webrtc/base/platform_thread_types.h" |
19 | 19 |
20 #if defined(WEBRTC_WIN) | 20 #if defined(WEBRTC_WIN) |
21 // Include winsock2.h before including <windows.h> to maintain consistency with | 21 // Include winsock2.h before including <windows.h> to maintain consistency with |
22 // win32.h. We can't include win32.h directly here since it pulls in | 22 // win32.h. We can't include win32.h directly here since it pulls in |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 public: | 141 public: |
142 explicit GlobalLockScope(GlobalLockPod* lock) EXCLUSIVE_LOCK_FUNCTION(lock); | 142 explicit GlobalLockScope(GlobalLockPod* lock) EXCLUSIVE_LOCK_FUNCTION(lock); |
143 ~GlobalLockScope() UNLOCK_FUNCTION(); | 143 ~GlobalLockScope() UNLOCK_FUNCTION(); |
144 private: | 144 private: |
145 GlobalLockPod* const lock_; | 145 GlobalLockPod* const lock_; |
146 RTC_DISALLOW_COPY_AND_ASSIGN(GlobalLockScope); | 146 RTC_DISALLOW_COPY_AND_ASSIGN(GlobalLockScope); |
147 }; | 147 }; |
148 | 148 |
149 } // namespace rtc | 149 } // namespace rtc |
150 | 150 |
151 #endif // WEBRTC_BASE_CRITICALSECTION_H_ | 151 #endif // WEBRTC_RTC_BASE_CRITICALSECTION_H_ |
OLD | NEW |