| 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 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 // See notes in the 'Performance' unit test for the effects of this flag. | 33 // See notes in the 'Performance' unit test for the effects of this flag. |
| 34 #define USE_NATIVE_MUTEX_ON_MAC 0 | 34 #define USE_NATIVE_MUTEX_ON_MAC 0 |
| 35 | 35 |
| 36 #if defined(WEBRTC_MAC) && !USE_NATIVE_MUTEX_ON_MAC | 36 #if defined(WEBRTC_MAC) && !USE_NATIVE_MUTEX_ON_MAC |
| 37 #include <dispatch/dispatch.h> | 37 #include <dispatch/dispatch.h> |
| 38 #endif | 38 #endif |
| 39 | 39 |
| 40 #if (!defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)) | 40 #if (!defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)) |
| 41 #define CS_DEBUG_CHECKS 1 | 41 #define CS_DEBUG_CHECKS 1 |
| 42 #else |
| 43 #define CS_DEBUG_CHECKS 0 |
| 42 #endif | 44 #endif |
| 43 | 45 |
| 44 #if CS_DEBUG_CHECKS | 46 #if CS_DEBUG_CHECKS |
| 45 #define CS_DEBUG_CODE(x) x | 47 #define CS_DEBUG_CODE(x) x |
| 46 #else // !CS_DEBUG_CHECKS | 48 #else // !CS_DEBUG_CHECKS |
| 47 #define CS_DEBUG_CODE(x) | 49 #define CS_DEBUG_CODE(x) |
| 48 #endif // !CS_DEBUG_CHECKS | 50 #endif // !CS_DEBUG_CHECKS |
| 49 | 51 |
| 50 namespace rtc { | 52 namespace rtc { |
| 51 | 53 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 explicit GlobalLockScope(GlobalLockPod* lock) EXCLUSIVE_LOCK_FUNCTION(lock); | 145 explicit GlobalLockScope(GlobalLockPod* lock) EXCLUSIVE_LOCK_FUNCTION(lock); |
| 144 ~GlobalLockScope() UNLOCK_FUNCTION(); | 146 ~GlobalLockScope() UNLOCK_FUNCTION(); |
| 145 private: | 147 private: |
| 146 GlobalLockPod* const lock_; | 148 GlobalLockPod* const lock_; |
| 147 RTC_DISALLOW_COPY_AND_ASSIGN(GlobalLockScope); | 149 RTC_DISALLOW_COPY_AND_ASSIGN(GlobalLockScope); |
| 148 }; | 150 }; |
| 149 | 151 |
| 150 } // namespace rtc | 152 } // namespace rtc |
| 151 | 153 |
| 152 #endif // WEBRTC_BASE_CRITICALSECTION_H_ | 154 #endif // WEBRTC_BASE_CRITICALSECTION_H_ |
| OLD | NEW |