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.
This commit is contained in:
Andreas Kling 2019-02-07 11:12:23 +01:00
commit 5582a0a254
Notes: sideshowbarker 2024-07-19 15:50:20 +09:00
15 changed files with 51 additions and 15 deletions

View file

@ -130,6 +130,7 @@ void WSWindowManager::flip_buffers()
WSWindowManager::WSWindowManager()
: m_screen(WSScreen::the())
, m_screen_rect(m_screen.rect())
, m_lock("WSWindowManager")
{
#ifndef DEBUG_COUNTERS
(void)m_compose_count;