summaryrefslogtreecommitdiff
path: root/Kernel/TTY.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-14 14:21:51 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-14 14:42:49 +0100
commitb0e3f733759a006622b14f75c5379641ef82776f (patch)
tree010bff69271f7174c1f4728a371785d010a602db /Kernel/TTY.cpp
parentb4da4e8fbdccd34792579f82338e09a727177b33 (diff)
downloadserenity-b0e3f733759a006622b14f75c5379641ef82776f.zip
Start refactoring the windowing system to use an event loop.
Userspace programs can now open /dev/gui_events and read a stream of GUI_Event structs one at a time. I was stuck on a stupid problem where we'd reenter Scheduler::yield() due to having one of the has_data_available_for_reading() implementations using locks.
Diffstat (limited to 'Kernel/TTY.cpp')
-rw-r--r--Kernel/TTY.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/TTY.cpp b/Kernel/TTY.cpp
index c2a64f9a9e..5261e251e1 100644
--- a/Kernel/TTY.cpp
+++ b/Kernel/TTY.cpp
@@ -42,7 +42,7 @@ ssize_t TTY::write(const byte* buffer, size_t size)
return size;
}
-bool TTY::has_data_available_for_reading() const
+bool TTY::has_data_available_for_reading(Process&) const
{
return !m_buffer.is_empty();
}