diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-07 11:12:23 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-07 11:14:58 +0100 |
commit | 5582a0a254c691db0c2ea8cf79bdbb0a2d74f00a (patch) | |
tree | e3bd27a9136daee6132249b785d4327746513ad6 /WindowServer/WSMessageLoop.cpp | |
parent | 4df92709c801e6cbdbaea71d55550171e65a95b3 (diff) | |
download | serenity-5582a0a254c691db0c2ea8cf79bdbb0a2d74f00a.zip |
Kernel: When a lock is busy, donate remaining process ticks to lock holder.
Since we know who's holding the lock, and we're gonna have to yield anyway,
we can just ask the scheduler to donate any remaining ticks to that process.
Diffstat (limited to 'WindowServer/WSMessageLoop.cpp')
-rw-r--r-- | WindowServer/WSMessageLoop.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/WindowServer/WSMessageLoop.cpp b/WindowServer/WSMessageLoop.cpp index 224595a7e1..7ab5781e86 100644 --- a/WindowServer/WSMessageLoop.cpp +++ b/WindowServer/WSMessageLoop.cpp @@ -13,6 +13,7 @@ static WSMessageLoop* s_the; WSMessageLoop::WSMessageLoop() + : m_lock("WSMessageLoop") { if (!s_the) s_the = this; |