@@ -30,7 +30,7 @@ public extension DispatchQueue {
30
30
31
31
public static let concurrent = Attributes ( rawValue: 1 <<1 )
32
32
33
- @available ( OSX 10 . 12 , iOS 10 . 0 , tvOS 10 . 0 , watchOS 3 . 0 , * )
33
+ @available ( macOS 10 . 12 , iOS 10 . 0 , tvOS 10 . 0 , watchOS 3 . 0 , * )
34
34
public static let initiallyInactive = Attributes ( rawValue: 1 <<2 )
35
35
36
36
fileprivate func _attr( ) -> __OS_dispatch_queue_attr ? {
@@ -49,25 +49,25 @@ public extension DispatchQueue {
49
49
}
50
50
51
51
public enum GlobalQueuePriority {
52
- @available ( OSX , deprecated: 10.10 , message: " Use qos attributes instead " )
52
+ @available ( macOS , deprecated: 10.10 , message: " Use qos attributes instead " )
53
53
@available ( iOS, deprecated: 8.0 , message: " Use qos attributes instead " )
54
54
@available ( tvOS, deprecated, message: " Use qos attributes instead " )
55
55
@available ( watchOS, deprecated, message: " Use qos attributes instead " )
56
56
case high
57
57
58
- @available ( OSX , deprecated: 10.10 , message: " Use qos attributes instead " )
58
+ @available ( macOS , deprecated: 10.10 , message: " Use qos attributes instead " )
59
59
@available ( iOS, deprecated: 8.0 , message: " Use qos attributes instead " )
60
60
@available ( tvOS, deprecated, message: " Use qos attributes instead " )
61
61
@available ( watchOS, deprecated, message: " Use qos attributes instead " )
62
62
case `default`
63
63
64
- @available ( OSX , deprecated: 10.10 , message: " Use qos attributes instead " )
64
+ @available ( macOS , deprecated: 10.10 , message: " Use qos attributes instead " )
65
65
@available ( iOS, deprecated: 8.0 , message: " Use qos attributes instead " )
66
66
@available ( tvOS, deprecated, message: " Use qos attributes instead " )
67
67
@available ( watchOS, deprecated, message: " Use qos attributes instead " )
68
68
case low
69
69
70
- @available ( OSX , deprecated: 10.10 , message: " Use qos attributes instead " )
70
+ @available ( macOS , deprecated: 10.10 , message: " Use qos attributes instead " )
71
71
@available ( iOS, deprecated: 8.0 , message: " Use qos attributes instead " )
72
72
@available ( tvOS, deprecated, message: " Use qos attributes instead " )
73
73
@available ( watchOS, deprecated, message: " Use qos attributes instead " )
@@ -86,10 +86,10 @@ public extension DispatchQueue {
86
86
public enum AutoreleaseFrequency {
87
87
case inherit
88
88
89
- @available ( OSX 10 . 12 , iOS 10 . 0 , tvOS 10 . 0 , watchOS 3 . 0 , * )
89
+ @available ( macOS 10 . 12 , iOS 10 . 0 , tvOS 10 . 0 , watchOS 3 . 0 , * )
90
90
case workItem
91
91
92
- @available ( OSX 10 . 12 , iOS 10 . 0 , tvOS 10 . 0 , watchOS 3 . 0 , * )
92
+ @available ( macOS 10 . 12 , iOS 10 . 0 , tvOS 10 . 0 , watchOS 3 . 0 , * )
93
93
case never
94
94
95
95
internal func _attr( attr: __OS_dispatch_queue_attr ? ) -> __OS_dispatch_queue_attr ? {
@@ -119,15 +119,15 @@ public extension DispatchQueue {
119
119
return _swift_dispatch_get_main_queue ( )
120
120
}
121
121
122
- @available ( OSX , deprecated: 10.10 )
122
+ @available ( macOS , deprecated: 10.10 )
123
123
@available ( iOS, deprecated: 8.0 )
124
124
@available ( tvOS, deprecated)
125
125
@available ( watchOS, deprecated)
126
126
public class func global( priority: GlobalQueuePriority ) -> DispatchQueue {
127
127
return __dispatch_get_global_queue ( priority. _translatedValue, 0 )
128
128
}
129
129
130
- @available ( OSX 10 . 10 , iOS 8 . 0 , * )
130
+ @available ( macOS 10 . 10 , iOS 8 . 0 , * )
131
131
public class func global( qos: DispatchQoS . QoSClass = . default) -> DispatchQueue {
132
132
return __dispatch_get_global_queue ( Int ( qos. rawValue. rawValue) , 0 )
133
133
}
@@ -170,21 +170,21 @@ public extension DispatchQueue {
170
170
return String ( validatingUTF8: __dispatch_queue_get_label ( self ) ) !
171
171
}
172
172
173
- @available ( OSX 10 . 10 , iOS 8 . 0 , * )
173
+ @available ( macOS 10 . 10 , iOS 8 . 0 , * )
174
174
public func sync( execute workItem: DispatchWorkItem ) {
175
175
// _swift_dispatch_sync preserves the @convention(block) for
176
176
// work item blocks.
177
177
_swift_dispatch_sync ( self , workItem. _block)
178
178
}
179
179
180
- @available ( OSX 10 . 10 , iOS 8 . 0 , * )
180
+ @available ( macOS 10 . 10 , iOS 8 . 0 , * )
181
181
public func async ( execute workItem: DispatchWorkItem ) {
182
182
// _swift_dispatch_async preserves the @convention(block)
183
183
// for work item blocks.
184
184
_swift_dispatch_async ( self , workItem. _block)
185
185
}
186
186
187
- @available ( OSX 10 . 10 , iOS 8 . 0 , * )
187
+ @available ( macOS 10 . 10 , iOS 8 . 0 , * )
188
188
public func async ( group: DispatchGroup , execute workItem: DispatchWorkItem ) {
189
189
// _swift_dispatch_group_async preserves the @convention(block)
190
190
// for work item blocks.
@@ -248,7 +248,7 @@ public extension DispatchQueue {
248
248
}
249
249
}
250
250
251
- @available ( OSX 10 . 10 , iOS 8 . 0 , * )
251
+ @available ( macOS 10 . 10 , iOS 8 . 0 , * )
252
252
private func _syncHelper< T> (
253
253
fn: ( DispatchWorkItem ) -> Void ,
254
254
flags: DispatchWorkItemFlags ,
@@ -314,17 +314,17 @@ public extension DispatchQueue {
314
314
}
315
315
}
316
316
317
- @available ( OSX 10 . 10 , iOS 8 . 0 , * )
317
+ @available ( macOS 10 . 10 , iOS 8 . 0 , * )
318
318
public func asyncAfter( deadline: DispatchTime , execute: DispatchWorkItem ) {
319
319
_swift_dispatch_after ( deadline. rawValue, self , execute. _block)
320
320
}
321
321
322
- @available ( OSX 10 . 10 , iOS 8 . 0 , * )
322
+ @available ( macOS 10 . 10 , iOS 8 . 0 , * )
323
323
public func asyncAfter( wallDeadline: DispatchWallTime , execute: DispatchWorkItem ) {
324
324
_swift_dispatch_after ( wallDeadline. rawValue, self , execute. _block)
325
325
}
326
326
327
- @available ( OSX 10 . 10 , iOS 8 . 0 , * )
327
+ @available ( macOS 10 . 10 , iOS 8 . 0 , * )
328
328
public var qos : DispatchQoS {
329
329
var relPri : Int32 = 0
330
330
let cls = DispatchQoS . QoSClass ( rawValue: __dispatch_queue_get_qos_class ( self , & relPri) ) !
0 commit comments