【发布时间】:2018-03-03 15:30:26
【问题描述】:
我想在目标 c 中使用以下代码。
var recordingQueue = DispatchQueue(label: "recordingQueue", qos: DispatchQoS.userInteractive)
【问题讨论】:
-
不幸的是,the proposed duplicate 接受的答案已过时。正确的解决方案是使用alternate answer to that question 或下面恩里克的回答中所示的 QoS。 WWDC 2014 视频Power, Performance and Diagnostics: What's new in GCD and XPC 中描述了如何指定 QoS。
标签: ios objective-c dispatch dispatch-queue