@@ -160,7 +160,8 @@ struct dispatch_root_queue_context_s {
160
160
#if HAVE_PTHREAD_WORKQUEUES
161
161
qos_class_t dgq_qos ;
162
162
int dgq_wq_priority , dgq_wq_options ;
163
- #if DISPATCH_USE_LEGACY_WORKQUEUE_FALLBACK || DISPATCH_USE_PTHREAD_POOL || HAVE_INTERNAL_PTHREAD_WORKQUEUE
163
+ #if DISPATCH_USE_LEGACY_WORKQUEUE_FALLBACK || DISPATCH_USE_PTHREAD_POOL || \
164
+ HAVE_INTERNAL_PTHREAD_WORKQUEUE
164
165
pthread_workqueue_t dgq_kworkqueue ;
165
166
#endif
166
167
#endif // HAVE_PTHREAD_WORKQUEUES
@@ -720,7 +721,8 @@ _dispatch_root_queues_init_workq(int *wq_supported)
720
721
result = !r ;
721
722
}
722
723
#endif // HAVE_PTHREAD_WORKQUEUE_SETDISPATCH_NP
723
- #if DISPATCH_USE_LEGACY_WORKQUEUE_FALLBACK || DISPATCH_USE_PTHREAD_POOL || HAVE_INTERNAL_PTHREAD_WORKQUEUE
724
+ #if DISPATCH_USE_LEGACY_WORKQUEUE_FALLBACK || DISPATCH_USE_PTHREAD_POOL || \
725
+ HAVE_INTERNAL_PTHREAD_WORKQUEUE
724
726
if (!result ) {
725
727
#if DISPATCH_USE_LEGACY_WORKQUEUE_FALLBACK
726
728
pthread_workqueue_attr_t pwq_attr ;
@@ -751,8 +753,9 @@ _dispatch_root_queues_init_workq(int *wq_supported)
751
753
#if HAVE_INTERNAL_PTHREAD_WORKQUEUE
752
754
if (!disable_wq && qc -> dgq_wq_priority != WORKQ_PRIO_INVALID ) {
753
755
int priority = qc -> dgq_wq_priority ;
754
- int overcommit = qc -> dgq_wq_options & WORKQ_ADDTHREADS_OPTION_OVERCOMMIT ;
755
- r = dispatch_workqueue_get_wq (& pwq , priority , overcommit );
756
+ int overcommit =
757
+ qc -> dgq_wq_options & WORKQ_ADDTHREADS_OPTION_OVERCOMMIT ;
758
+ r = dispatch_workq_get_wq (& pwq , priority , overcommit );
756
759
(void )dispatch_assume_zero (r );
757
760
result = result || dispatch_assume (pwq );
758
761
}
@@ -4288,7 +4291,7 @@ _dispatch_global_queue_poke_slow(dispatch_queue_t dq, unsigned int n)
4288
4291
#if HAVE_INTERNAL_PTHREAD_WORKQUEUE
4289
4292
if (qc -> dgq_kworkqueue ) {
4290
4293
do {
4291
- r = dispatch_workqueue_additem_np (qc -> dgq_kworkqueue ,
4294
+ r = dispatch_workq_additem_np (qc -> dgq_kworkqueue ,
4292
4295
_dispatch_worker_thread4 , dq );
4293
4296
(void )dispatch_assume_zero (r );
4294
4297
} while (-- i );
0 commit comments