forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dispatch.apinotes
328 lines (328 loc) · 9.48 KB
/
Dispatch.apinotes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
---
Name: Dispatch
Typedefs:
- Name: dispatch_object_t
Availability: nonswift
- Name: dispatch_block_t
Availability: nonswift
- Name: dispatch_queue_t
Availability: nonswift
- Name: dispatch_semaphore_t
Availability: nonswift
- Name: dispatch_io_t
Availability: nonswift
- Name: dispatch_data_t
Availability: nonswift
- Name: dispatch_group_t
Availability: nonswift
- Name: dispatch_qos_class_t
Availability: nonswift
- Name: dispatch_data_applier_t
Availability: nonswift
- Name: dispatch_fd_t
Availability: nonswift
- Name: dispatch_io_handler_t
Availability: nonswift
- Name: dispatch_source_t
Availability: nonswift
- Name: dispatch_function_t
Availability: nonswift
- Name: dispatch_io_close_flags_t
Availability: nonswift
- Name: dispatch_io_interval_flags_t
Availability: nonswift
- Name: dispatch_io_type_t
Availability: nonswift
- Name: dispatch_source_timer_flags_t
Availability: nonswift
- Name: dispatch_autorelease_frequency_t
SwiftPrivate: true
- Name: dispatch_queue_attr_t
Availability: nonswift
- Name: dispatch_queue_priority_t
Availability: nonswift
- Name: dispatch_block_flags_t
SwiftPrivate: true
- Name: dispatch_source_type_t
SwiftPrivate: true
- Name: dispatch_source_mach_send_flags_t
Availability: nonswift
- Name: dispatch_source_memorypressure_flags_t
Availability: nonswift
- Name: dispatch_source_proc_flags_t
Availability: nonswift
- Name: dispatch_source_vnode_flags_t
Availability: nonswift
Classes:
- Name: OS_dispatch_object
SwiftName: DispatchObject
- Name: OS_dispatch_queue
SwiftName: DispatchQueue
- Name: OS_dispatch_io
SwiftName: DispatchIO
- Name: OS_dispatch_semaphore
SwiftName: DispatchSemaphore
- Name: OS_dispatch_group
SwiftName: DispatchGroup
- Name: OS_dispatch_source
SwiftName: DispatchSource
- Name: OS_dispatch_queue_attr
SwiftPrivate: true
- Name: OS_dispatch_data
SwiftName: __DispatchData
Protocols:
- Name: OS_dispatch_source
SwiftName: DispatchSourceProtocol
- Name: OS_dispatch_source_mach_send
SwiftName: DispatchSourceMachSend
- Name: OS_dispatch_source_mach_recv
SwiftName: DispatchSourceMachReceive
- Name: OS_dispatch_source_memorypressure
SwiftName: DispatchSourceMemoryPressure
- Name: OS_dispatch_source_proc
SwiftName: DispatchSourceProcess
- Name: OS_dispatch_source_read
SwiftName: DispatchSourceRead
- Name: OS_dispatch_source_signal
SwiftName: DispatchSourceSignal
- Name: OS_dispatch_source_timer
SwiftName: DispatchSourceTimer
- Name: OS_dispatch_source_data_or
SwiftName: DispatchSourceUserDataOr
- Name: OS_dispatch_source_data_add
SwiftName: DispatchSourceUserDataAdd
- Name: OS_dispatch_source_vnode
SwiftName: DispatchSourceFileSystemObject
- Name: OS_dispatch_source_write
SwiftName: DispatchSourceWrite
Functions:
- Name: dispatch_release
Availability: nonswift
- Name: dispatch_retain
Availability: nonswift
# dispatch_queue_t
- Name: dispatch_queue_create
SwiftName: 'DispatchQueue.init(__label:attr:)'
SwiftPrivate: true
- Name: dispatch_get_global_queue
SwiftPrivate: true
- Name: dispatch_queue_create_with_target
SwiftName: 'DispatchQueue.init(__label:attr:queue:)'
SwiftPrivate: true
- Name: dispatch_assert_queue
SwiftPrivate: true
- Name: dispatch_assert_queue_barrier
SwiftPrivate: true
- Name: dispatch_assert_queue_not
SwiftPrivate: true
- Name: dispatch_async
SwiftPrivate: true
- Name: dispatch_async_f
Availability: nonswift
- Name: dispatch_barrier_async
SwiftPrivate: true
- Name: dispatch_barrier_async_f
Availability: nonswift
- Name: dispatch_apply
SwiftPrivate: true
- Name: dispatch_apply_f
Availability: nonswift
- Name: dispatch_sync
SwiftName: 'DispatchQueue.sync(self:execute:)'
- Name: dispatch_sync_f
Availability: nonswift
- Name: dispatch_barrier_sync
SwiftPrivate: true
- Name: dispatch_barrier_sync_f
Availability: nonswift
- Name: dispatch_queue_get_label
SwiftPrivate: true
- Name: dispatch_queue_get_qos_class
SwiftPrivate: true
- Name: dispatch_after
SwiftPrivate: true
- Name: dispatch_after_f
Availability: nonswift
- Name: dispatch_queue_get_specific
SwiftPrivate: true
- Name: dispatch_queue_set_specific
SwiftPrivate: true
- Name: dispatch_get_specific
SwiftPrivate: true
- Name: dispatch_get_main_queue
Availability: nonswift
- Name: dispatch_queue_attr_make_initially_inactive
SwiftPrivate: true
- Name: dispatch_queue_attr_make_with_autorelease_frequency
SwiftPrivate: true
- Name: dispatch_queue_attr_make_with_qos_class
SwiftPrivate: true
# dispatch_object_t
- Name: dispatch_set_target_queue
SwiftName: 'DispatchObject.setTarget(self:queue:)'
- Name: dispatch_activate
SwiftName: 'DispatchObject.activate(self:)'
- Name: dispatch_suspend
SwiftName: 'DispatchObject.suspend(self:)'
- Name: dispatch_resume
SwiftName: 'DispatchObject.resume(self:)'
- Name: dispatch_set_finalizer_f
Availability: nonswift
- Name: dispatch_get_context
Availability: nonswift
- Name: dispatch_set_context
Availability: nonswift
- Name: _dispatch_object_validate
Availability: nonswift
# dispatch_block
- Name: dispatch_block_create
Availability: nonswift
AvailabilityMsg: 'Use DispatchWorkItem()'
- Name: dispatch_block_create_with_qos_class
Availability: nonswift
AvailabilityMsg: 'Use DispatchWorkItem()'
- Name: dispatch_block_perform
Availability: nonswift
AvailabilityMsg: 'Use DispatchWorkItem.perform()'
- Name: dispatch_block_wait
Availability: nonswift
AvailabilityMsg: 'Use DispatchWorkItem.wait(timeout:)'
- Name: dispatch_block_notify
Availability: nonswift
AvailabilityMsg: 'Use DispatchWorkItem.notify(queue:execute:)'
- Name: dispatch_block_cancel
Availability: nonswift
AvailabilityMsg: 'Use DispatchWorkItem.cancel()'
- Name: dispatch_block_testcancel
Availability: nonswift
AvailabilityMsg: 'Use DispatchWorkItem.isCancelled'
# dispatch_data
- Name: dispatch_data_create
Availability: nonswift
- Name: dispatch_data_get_size
SwiftPrivate: true
- Name: dispatch_data_apply
SwiftPrivate: true
- Name: dispatch_data_create_concat
SwiftPrivate: true
- Name: dispatch_data_create_subrange
SwiftPrivate: true
- Name: dispatch_data_copy_region
SwiftPrivate: true
- Name: dispatch_data_create_map
SwiftPrivate: true
# dispatch_group_t
- Name: dispatch_group_create
SwiftName: 'DispatchGroup.init()'
Availability: available
- Name: dispatch_group_async
SwiftPrivate: true
- Name: dispatch_group_async_f
Availability: nonswift
- Name: dispatch_group_wait
SwiftPrivate: true
- Name: dispatch_group_notify
SwiftPrivate: true
- Name: dispatch_group_notify_f
Availability: nonswift
- Name: dispatch_group_enter
SwiftName: 'DispatchGroup.enter(self:)'
- Name: dispatch_group_leave
SwiftName: 'DispatchGroup.leave(self:)'
# dispatch_io
- Name: dispatch_io_create
SwiftPrivate: true
SwiftName: 'DispatchIO.init(__type:fd:queue:handler:)'
- Name: dispatch_io_create_with_path
SwiftPrivate: true
SwiftName: 'DispatchIO.init(__type:path:oflag:mode:queue:handler:)'
- Name: dispatch_io_create_with_io
SwiftPrivate: true
SwiftName: 'DispatchIO.init(__type:io:queue:handler:)'
- Name: dispatch_io_read
SwiftPrivate: true
- Name: dispatch_io_write
SwiftPrivate: true
- Name: dispatch_io_close
SwiftPrivate: true
- Name: dispatch_io_barrier
SwiftName: 'DispatchIO.barrier(self:execute:)'
- Name: dispatch_io_get_descriptor
SwiftName: 'getter:DispatchIO.fileDescriptor(self:)'
- Name: dispatch_io_set_high_water
SwiftName: 'DispatchIO.setLimit(self:highWater:)'
- Name: dispatch_io_set_low_water
SwiftName: 'DispatchIO.setLimit(self:lowWater:)'
- Name: dispatch_io_set_interval
SwiftPrivate: true
- Name: dispatch_read
SwiftPrivate: true
- Name: dispatch_write
SwiftPrivate: true
# dispatch_semaphore
- Name: dispatch_semaphore_create
SwiftName: 'DispatchSemaphore.init(value:)'
- Name: dispatch_semaphore_wait
SwiftPrivate: true
- Name: dispatch_semaphore_signal
SwiftPrivate: true
# dispatch_source
- Name: dispatch_source_create
SwiftPrivate: true
- Name: dispatch_source_get_handle
SwiftPrivate: true
- Name: dispatch_source_get_mask
SwiftPrivate: true
- Name: dispatch_source_get_data
SwiftPrivate: true
- Name: dispatch_source_merge_data
SwiftPrivate: true
- Name: dispatch_source_set_event_handler
SwiftPrivate: true
- Name: dispatch_source_set_event_handler_f
Availability: nonswift
- Name: dispatch_source_set_cancel_handler
SwiftPrivate: true
- Name: dispatch_source_set_cancel_handler_f
Availability: nonswift
- Name: dispatch_source_set_registration_handler
SwiftPrivate: true
- Name: dispatch_source_set_registration_handler_f
Availability: nonswift
- Name: dispatch_source_cancel
SwiftPrivate: true
- Name: dispatch_source_testcancel
SwiftPrivate: true
- Name: dispatch_source_set_timer
SwiftPrivate: true
# dispatch_time
- Name: dispatch_time
SwiftPrivate: true
- Name: dispatch_walltime
SwiftPrivate: true
- Name: dispatch_main
SwiftName: 'dispatchMain()'
Globals:
- Name: _dispatch_data_destructor_free
Availability: nonswift
- Name: _dispatch_data_destructor_munmap
Availability: nonswift
Enumerators:
- Name: DISPATCH_BLOCK_BARRIER
Availability: nonswift
- Name: DISPATCH_BLOCK_DETACHED
Availability: nonswift
- Name: DISPATCH_BLOCK_ASSIGN_CURRENT
Availability: nonswift
- Name: DISPATCH_BLOCK_NO_QOS_CLASS
Availability: nonswift
- Name: DISPATCH_BLOCK_INHERIT_QOS_CLASS
Availability: nonswift
- Name: DISPATCH_BLOCK_ENFORCE_QOS_CLASS
Availability: nonswift
- Name: DISPATCH_AUTORELEASE_FREQUENCY_INHERIT
Availability: nonswift
- Name: DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM
Availability: nonswift
- Name: DISPATCH_AUTORELEASE_FREQUENCY_NEVER
Availability: nonswift