File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -199,9 +199,10 @@ struct dispatch_root_queue_context_s {
199
199
};
200
200
typedef struct dispatch_root_queue_context_s * dispatch_root_queue_context_t ;
201
201
202
+ #define WORKQ_PRIO_INVALID (-1)
202
203
#ifdef __linux__
203
- #define WORKQ_BG_PRIOQUEUE_CONDITIONAL (-1)
204
- #define WORKQ_HIGH_PRIOQUEUE_CONDITIONAL (-1)
204
+ #define WORKQ_BG_PRIOQUEUE_CONDITIONAL WORKQ_PRIO_INVALID
205
+ #define WORKQ_HIGH_PRIOQUEUE_CONDITIONAL WORKQ_PRIO_INVALID
205
206
#else
206
207
#define WORKQ_BG_PRIOQUEUE_CONDITIONAL WORKQ_BG_PRIOQUEUE
207
208
#define WORKQ_HIGH_PRIOQUEUE_CONDITIONAL WORKQ_HIGH_PRIOQUEUE
@@ -818,7 +819,7 @@ _dispatch_root_queues_init_workq(void)
818
819
dispatch_root_queue_context_t qc ;
819
820
qc = & _dispatch_root_queue_contexts [i ];
820
821
#if DISPATCH_USE_LEGACY_WORKQUEUE_FALLBACK
821
- if (!disable_wq && qc -> dgq_wq_priority != -1 ) {
822
+ if (!disable_wq && qc -> dgq_wq_priority != WORKQ_PRIO_INVALID ) {
822
823
r = pthread_workqueue_attr_setqueuepriority_np (& pwq_attr ,
823
824
qc -> dgq_wq_priority );
824
825
(void )dispatch_assume_zero (r );
You can’t perform that action at this time.
0 commit comments