Skip to content

Commit 4c5fb69

Browse files
committed
Fix collision of QOS_CLASS_MAINTENANCE and DISPATCH_QOS_USER_INITIATED
1 parent e85f6a0 commit 4c5fb69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,9 +383,9 @@ dispatch_get_global_queue(intptr_t priority, uintptr_t flags)
383383
}
384384
dispatch_qos_t qos = _dispatch_qos_from_queue_priority(priority);
385385
#if !HAVE_PTHREAD_WORKQUEUE_QOS
386-
if (qos == QOS_CLASS_MAINTENANCE) {
386+
if (qos == DISPATCH_QOS_MAINTENANCE) {
387387
qos = DISPATCH_QOS_BACKGROUND;
388-
} else if (qos == QOS_CLASS_USER_INTERACTIVE) {
388+
} else if (qos == DISPATCH_QOS_USER_INTERACTIVE) {
389389
qos = DISPATCH_QOS_USER_INITIATED;
390390
}
391391
#endif

0 commit comments

Comments
 (0)