mirror of
https://github.com/RGBCube/serenity
synced 2025-07-05 00:57:35 +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
15 changed files with 121 additions and 33 deletions
|
@ -129,6 +129,7 @@ ssize_t PS2MouseDevice::read(Process&, byte* buffer, size_t size)
|
|||
while ((size_t)nread < size) {
|
||||
if (m_queue.is_empty())
|
||||
break;
|
||||
// FIXME: Don't return partial data frames.
|
||||
buffer[nread++] = m_queue.dequeue();
|
||||
}
|
||||
return nread;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue