···9191 int flags = 0;
9292 int qos = _pthread_priority_thread_qos(priority);
93939494- // Apple has created a mess of QoS in libdispatch and sometimes libdispatch doesn't set QoS properly when building with configurations Apple (apparently) hasn't tested
9595- //
9696- // we only do this is a hack/workaround until we improve our workqueue/kqueue support to use libdispatch's new SPIs
9797- if (qos == 0) {
9898- qos = 4; // default libdispatch QoS
9999- }
100100-10194 flags = WQ_FLAG_THREAD_NEWSPI | qos | WQ_FLAG_THREAD_PRIO_QOS;
1029510396 if (priority & _PTHREAD_PRIORITY_OVERCOMMIT_FLAG) {