summaryrefslogtreecommitdiff
path: root/Servers
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-30 20:10:49 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-30 20:10:49 +0100
commit25d7a7efa627b83066b5d76f2c5b5a76da2337bf (patch)
tree0d97ce9f92d58351669bee626261c9f544bac4d5 /Servers
parenta69734bf2e41c9a48692bef867a92a75991eb0c9 (diff)
downloadserenity-25d7a7efa627b83066b5d76f2c5b5a76da2337bf.zip
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.
Diffstat (limited to 'Servers')
-rw-r--r--Servers/WindowServer/WSClientConnection.cpp8
1 files changed, 4 insertions, 4 deletions
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<WindowServer::StartDragResponse> 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");
}