Skip to content

Commit cf63fca

Browse files
committed
Move discussion about thread policy below macro
1 parent adcc48b commit cf63fca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/queue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6246,6 +6246,7 @@ _dispatch_worker_thread(void *context)
62466246
dispatch_priority_t pri = dq->dq_priority;
62476247
pthread_priority_t pp = _dispatch_get_priority();
62486248

6249+
#if defined(__linux__)
62496250
// The Linux kernel does not have a direct analogue to the QoS-based
62506251
// thread policy engine found in XNU.
62516252
//
@@ -6259,7 +6260,6 @@ _dispatch_worker_thread(void *context)
62596260
// per‐thread attribute: different threads in the same process can have
62606261
// different nice values. We can thus setup the thread's initial priority
62616262
// by converting the QoS class and relative priority to a 'nice' value.
6262-
#if defined(__linux__)
62636263
pp = _dispatch_priority_to_pp_strip_flags(pri);
62646264
int nice = _dispatch_pp_to_nice(pp);
62656265

0 commit comments

Comments
 (0)