OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2017 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2017 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 #include "webrtc/base/thread.h" | 11 #include "webrtc/rtc_base/thread.h" |
12 | 12 |
13 #import <Foundation/Foundation.h> | 13 #import <Foundation/Foundation.h> |
14 | 14 |
15 #include "webrtc/base/platform_thread.h" | 15 #include "webrtc/rtc_base/platform_thread.h" |
16 | 16 |
17 /* | 17 /* |
18 * This file contains platform-specific implementations for several | 18 * This file contains platform-specific implementations for several |
19 * methods in rtc::Thread. | 19 * methods in rtc::Thread. |
20 */ | 20 */ |
21 | 21 |
22 namespace { | 22 namespace { |
23 void InitCocoaMultiThreading() { | 23 void InitCocoaMultiThreading() { |
24 if ([NSThread isMultiThreaded] == NO) { | 24 if ([NSThread isMultiThreaded] == NO) { |
25 // The sole purpose of this autorelease pool is to avoid a console | 25 // The sole purpose of this autorelease pool is to avoid a console |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 if (cmsLoop != kForever) { | 76 if (cmsLoop != kForever) { |
77 cmsNext = static_cast<int>(TimeUntil(msEnd)); | 77 cmsNext = static_cast<int>(TimeUntil(msEnd)); |
78 if (cmsNext < 0) | 78 if (cmsNext < 0) |
79 return true; | 79 return true; |
80 } | 80 } |
81 } | 81 } |
82 } | 82 } |
83 } | 83 } |
84 } // namespace rtc | 84 } // namespace rtc |
OLD | NEW |