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

Allow the scheduler to unblock the current process.

It's a bit confusing that the "current" process is not actually running
while we're inside the scheduler. Perhaps the scheduler should redirect
"current" to its own dummy Process. I'm not sure.

Regardless, this patch improves responsiveness by allowing the scheduler
to unblock a process right after it calls select() in case it already has
a pending wakeup request.
This commit is contained in:
Andreas Kling 2019-01-16 17:47:18 +01:00
parent 4fef895eda
commit a2ec09bc20
4 changed files with 16 additions and 4 deletions

View file

@ -77,6 +77,7 @@ private:
Rect m_last_cursor_rect;
unsigned m_recompose_count { 0 };
unsigned m_flush_count { 0 };
RetainPtr<GraphicsBitmap> m_front_bitmap;
RetainPtr<GraphicsBitmap> m_back_bitmap;