Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: webrtc/base/maccocoasocketserver.mm

Issue 2325623002: webrtc/base: Use RTC_DCHECK() instead of assert() (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/base/flags.cc ('k') | webrtc/base/maccocoathreadhelper.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 The WebRTC Project Authors. All rights reserved. 2 * Copyright 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 #import "webrtc/base/maccocoasocketserver.h" 10 #import "webrtc/base/maccocoasocketserver.h"
11 11
12 #import <Foundation/Foundation.h> 12 #import <Foundation/Foundation.h>
13 #import <AppKit/AppKit.h> 13 #import <AppKit/AppKit.h>
14 #include <assert.h>
15 14
16 #include "webrtc/base/scoped_autorelease_pool.h" 15 #include "webrtc/base/scoped_autorelease_pool.h"
17 16
18 // MacCocoaSocketServerHelperRtc serves as a delegate to NSMachPort or a target for 17 // MacCocoaSocketServerHelperRtc serves as a delegate to NSMachPort or a target for
19 // a timeout. 18 // a timeout.
20 @interface MacCocoaSocketServerHelperRtc : NSObject { 19 @interface MacCocoaSocketServerHelperRtc : NSObject {
21 // This is a weak reference. This works fine since the 20 // This is a weak reference. This works fine since the
22 // rtc::MacCocoaSocketServer owns this object. 21 // rtc::MacCocoaSocketServer owns this object.
23 rtc::MacCocoaSocketServer* socketServer_; // Weak. 22 rtc::MacCocoaSocketServer* socketServer_; // Weak.
24 } 23 }
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // [NSApp isRunning] returns unexpected results when called from another 130 // [NSApp isRunning] returns unexpected results when called from another
132 // thread. Maintain our own count of how many times to break the main loop. 131 // thread. Maintain our own count of how many times to break the main loop.
133 if (run_count_ > 0) { 132 if (run_count_ > 0) {
134 [helper_ performSelectorOnMainThread:@selector(breakMainloop) 133 [helper_ performSelectorOnMainThread:@selector(breakMainloop)
135 withObject:nil 134 withObject:nil
136 waitUntilDone:false]; 135 waitUntilDone:false];
137 } 136 }
138 } 137 }
139 138
140 } // namespace rtc 139 } // namespace rtc
OLDNEW
« no previous file with comments | « webrtc/base/flags.cc ('k') | webrtc/base/maccocoathreadhelper.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698