1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:27:35 +00:00

WindowServer: Give a thread boost to the currently active window

When the currently active (foreground) window is owned by a client,
we now apply a +10 priority boost to the client's main thread.

You normally want the window you're interacting with to be responsive,
so this little boost allows it to run a bit sooner and more often. :^)
This commit is contained in:
Andreas Kling 2019-12-30 19:27:58 +01:00
parent 610f3ad12f
commit 0dea0fd06f
3 changed files with 29 additions and 3 deletions

View file

@ -22,6 +22,9 @@ public:
~WSClientConnection() override;
virtual void die() override;
void boost();
void deboost();
static WSClientConnection* from_client_id(int client_id);
static void for_each_client(Function<void(WSClientConnection&)>);