We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3106e0 commit d5afe08Copy full SHA for d5afe08
src/shims/priority.h
@@ -262,10 +262,12 @@ static inline int _dispatch_pp_to_win32_priority(pthread_priority_t pp) {
262
return THREAD_PRIORITY_BELOW_NORMAL;
263
case DISPATCH_QOS_DEFAULT:
264
return THREAD_PRIORITY_NORMAL;
265
+ // User input threads should be THREAD_PRIORITY_NORMAL, to
266
+ // avoid unintentionally starving the system
267
case DISPATCH_QOS_USER_INITIATED:
- return THREAD_PRIORITY_ABOVE_NORMAL;
268
+ return THREAD_PRIORITY_NORMAL;
269
case DISPATCH_QOS_USER_INTERACTIVE:
- return THREAD_PRIORITY_HIGHEST;
270
271
}
272
273
0 commit comments