mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +00:00
Rework WindowServer to use select() in its main event loop.
The system can finally idle without burning CPU. :^) There are some issues with scheduling making the mouse cursor sloppy and unresponsive that need to be dealt with.
This commit is contained in:
parent
f7ca6d254d
commit
4fef895eda
Notes:
sideshowbarker
2024-07-19 16:01:27 +09:00
Author: https://github.com/awesomekling
Commit: 4fef895eda
15 changed files with 121 additions and 33 deletions
|
@ -65,6 +65,11 @@ bool Scheduler::pick_next()
|
|||
}
|
||||
|
||||
if (process.state() == Process::BlockedSelect) {
|
||||
if (process.wakeup_requested()) {
|
||||
process.m_wakeup_requested = false;
|
||||
process.unblock();
|
||||
return true;
|
||||
}
|
||||
for (int fd : process.m_select_read_fds) {
|
||||
if (process.m_fds[fd].descriptor->can_read(process)) {
|
||||
process.unblock();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue