| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2015 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 #import "RTCDispatcher.h" | 11 #import "RTCDispatcher.h" |
| 12 | 12 |
| 13 #import "RTCDispatcher+Private.h" |
| 14 |
| 13 static dispatch_queue_t kAudioSessionQueue = nil; | 15 static dispatch_queue_t kAudioSessionQueue = nil; |
| 14 static dispatch_queue_t kCaptureSessionQueue = nil; | 16 static dispatch_queue_t kCaptureSessionQueue = nil; |
| 15 | 17 |
| 16 @implementation RTCDispatcher | 18 @implementation RTCDispatcher |
| 17 | 19 |
| 18 + (void)initialize { | 20 + (void)initialize { |
| 19 static dispatch_once_t onceToken; | 21 static dispatch_once_t onceToken; |
| 20 dispatch_once(&onceToken, ^{ | 22 dispatch_once(&onceToken, ^{ |
| 21 kAudioSessionQueue = dispatch_queue_create( | 23 kAudioSessionQueue = dispatch_queue_create( |
| 22 "org.webrtc.RTCDispatcherAudioSession", | 24 "org.webrtc.RTCDispatcherAudioSession", |
| (...skipping 18 matching lines...) Expand all Loading... |
| 41 return dispatch_get_main_queue(); | 43 return dispatch_get_main_queue(); |
| 42 case RTCDispatcherTypeCaptureSession: | 44 case RTCDispatcherTypeCaptureSession: |
| 43 return kCaptureSessionQueue; | 45 return kCaptureSessionQueue; |
| 44 case RTCDispatcherTypeAudioSession: | 46 case RTCDispatcherTypeAudioSession: |
| 45 return kAudioSessionQueue; | 47 return kAudioSessionQueue; |
| 46 } | 48 } |
| 47 } | 49 } |
| 48 | 50 |
| 49 @end | 51 @end |
| 50 | 52 |
| OLD | NEW |