File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments