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

Unified Diff: webrtc/base/objc/RTCDispatcher.m

Issue 1782363002: Fix lock behavior on RTCAudioSession. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Remove autoreleasepool bits Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/base/objc/RTCDispatcher.h ('k') | webrtc/examples/objc/AppRTCDemo/ios/ARDVideoCallView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/objc/RTCDispatcher.m
diff --git a/webrtc/base/objc/RTCDispatcher.m b/webrtc/base/objc/RTCDispatcher.m
index 065705a4aea70e368658f4d2e346ef902a6d5d99..d912ab888d9a75065b1abebef385d344f5742bd6 100644
--- a/webrtc/base/objc/RTCDispatcher.m
+++ b/webrtc/base/objc/RTCDispatcher.m
@@ -10,15 +10,17 @@
#import "RTCDispatcher.h"
+static dispatch_queue_t kAudioSessionQueue = nil;
static dispatch_queue_t kCaptureSessionQueue = nil;
-@implementation RTCDispatcher {
- dispatch_queue_t _captureSessionQueue;
-}
+@implementation RTCDispatcher
+ (void)initialize {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
+ kAudioSessionQueue = dispatch_queue_create(
+ "org.webrtc.RTCDispatcherAudioSession",
+ DISPATCH_QUEUE_SERIAL);
kCaptureSessionQueue = dispatch_queue_create(
"org.webrtc.RTCDispatcherCaptureSession",
DISPATCH_QUEUE_SERIAL);
@@ -39,6 +41,8 @@ static dispatch_queue_t kCaptureSessionQueue = nil;
return dispatch_get_main_queue();
case RTCDispatcherTypeCaptureSession:
return kCaptureSessionQueue;
+ case RTCDispatcherTypeAudioSession:
+ return kAudioSessionQueue;
}
}
« no previous file with comments | « webrtc/base/objc/RTCDispatcher.h ('k') | webrtc/examples/objc/AppRTCDemo/ios/ARDVideoCallView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698