| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 |
| 11 | #include "rtc_base/system/gcd_helpers.h" |
| 12 |
| 13 | dispatch_queue_t RTCDispatchQueueCreateWithTarget(const char *label, |
| 14 | dispatch_queue_attr_t attr, |
| 15 | dispatch_queue_t target) { |
| 16 | if (@available(iOS 10, macOS 10.12, tvOS 10, watchOS 3, *)) { |
| 17 | return dispatch_queue_create_with_target(label, attr, target); |
| 18 | } |
| 19 | dispatch_queue_t queue = dispatch_queue_create(label, attr); |
| 20 | dispatch_set_target_queue(queue, target); |
| 21 | return queue; |
| 22 | } |
| 23 |