Skip to content

Commit ec0f661

Browse files
committed
fix linux build failure
Signed-off-by: Daniel A. Steffen <das@apple.com>
1 parent 0acc011 commit ec0f661

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/queue.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3013,6 +3013,7 @@ _dispatch_block_sync_invoke(void *block)
30133013
}
30143014
}
30153015

3016+
#if DISPATCH_USE_KEVENT_WORKQUEUE
30163017
static void
30173018
_dispatch_block_async_invoke_reset_max_qos(dispatch_queue_t dq,
30183019
dispatch_qos_t qos)
@@ -3053,6 +3054,7 @@ _dispatch_block_async_invoke_reset_max_qos(dispatch_queue_t dq,
30533054
_dispatch_deferred_items_get()->ddi_wlh_needs_update = true;
30543055
_dispatch_event_loop_drain(KEVENT_FLAG_IMMEDIATE);
30553056
}
3057+
#endif // DISPATCH_USE_KEVENT_WORKQUEUE
30563058

30573059
#define DISPATCH_BLOCK_ASYNC_INVOKE_RELEASE 0x1
30583060
#define DISPATCH_BLOCK_ASYNC_INVOKE_NO_OVERRIDE_RESET 0x2
@@ -3068,6 +3070,7 @@ _dispatch_block_async_invoke2(dispatch_block_t b, unsigned long invoke_flags)
30683070
"run more than once and waited for");
30693071
}
30703072

3073+
#if DISPATCH_USE_KEVENT_WORKQUEUE
30713074
if (unlikely((dbpd->dbpd_flags &
30723075
DISPATCH_BLOCK_IF_LAST_RESET_QUEUE_QOS_OVERRIDE) &&
30733076
!(invoke_flags & DISPATCH_BLOCK_ASYNC_INVOKE_NO_OVERRIDE_RESET))) {
@@ -3077,6 +3080,7 @@ _dispatch_block_async_invoke2(dispatch_block_t b, unsigned long invoke_flags)
30773080
_dispatch_block_async_invoke_reset_max_qos(dq, qos);
30783081
}
30793082
}
3083+
#endif // DISPATCH_USE_KEVENT_WORKQUEUE
30803084

30813085
if (!slowpath(atomic_flags & DBF_CANCELED)) {
30823086
dbpd->dbpd_block();

0 commit comments

Comments
 (0)