File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -260,6 +260,21 @@ const struct dispatch_queue_attr_s _dispatch_queue_attrs[]
260
260
DISPATCH_QUEUE_ATTR_QOS_INITIALIZER (USER_INTERACTIVE ),
261
261
};
262
262
263
+ #ifndef __APPLE__
264
+ // _dispatch_queue_attr_concurrent is only aliased on Darwin where the
265
+ // -alias_list linker option exists. On other platforms we need to assign
266
+ // the structure and properties directly.
267
+ struct dispatch_queue_attr_s _dispatch_queue_attr_concurrent = {
268
+ .do_vtable = DISPATCH_VTABLE (queue_attr ),
269
+ .do_ref_cnt = DISPATCH_OBJECT_GLOBAL_REFCNT ,
270
+ .do_xref_cnt = DISPATCH_OBJECT_GLOBAL_REFCNT ,
271
+ .do_next = DISPATCH_OBJECT_LISTLESS ,
272
+ .dqa_qos_class = _DISPATCH_QOS_CLASS_UNSPECIFIED ,
273
+ .dqa_relative_priority = 0 ,
274
+ .dqa_overcommit = _dispatch_queue_attr_overcommit_unspecified ,
275
+ .dqa_concurrent = 1
276
+ };
277
+ #endif
263
278
264
279
#pragma mark -
265
280
#pragma mark dispatch_vtables
You can’t perform that action at this time.
0 commit comments