From 25d7a7efa627b83066b5d76f2c5b5a76da2337bf Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 30 Dec 2019 20:10:49 +0100 Subject: WindowServer: Let's boost all threads in the active client process Instead of just boosting the main thread, let's boost all threads in the currently active client process. This avoids creating internal priority inversion problems in clients. --- Servers/WindowServer/WSClientConnection.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Servers') diff --git a/Servers/WindowServer/WSClientConnection.cpp b/Servers/WindowServer/WSClientConnection.cpp index 24835ed49a..c463956cff 100644 --- a/Servers/WindowServer/WSClientConnection.cpp +++ b/Servers/WindowServer/WSClientConnection.cpp @@ -655,12 +655,12 @@ OwnPtr WSClientConnection::handle(const WindowS void WSClientConnection::boost() { - if (set_thread_boost(client_pid(), 10) < 0) - perror("boost: set_thread_boost"); + if (set_process_boost(client_pid(), 10) < 0) + perror("boost: set_process_boost"); } void WSClientConnection::deboost() { - if (set_thread_boost(client_pid(), 0) < 0) - perror("deboost: set_thread_boost"); + if (set_process_boost(client_pid(), 0) < 0) + perror("deboost: set_process_boost"); } -- cgit v1.2.3