summaryrefslogtreecommitdiff
path: root/Kernel/Devices
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2021-02-14 15:02:14 -0800
committerAndreas Kling <kling@serenityos.org>2021-02-15 08:28:57 +0100
commitddd79fe2cfa4759ed0fabbb875403248a918fa00 (patch)
tree036a81b28f2313c9d8a5b33806e7830dab43b2bb /Kernel/Devices
parent4ac286903d4ba055b89f134a8022e64726581708 (diff)
downloadserenity-ddd79fe2cfa4759ed0fabbb875403248a918fa00.zip
Kernel: Add WaitQueue::wait_forever and it use it for all infinite waits.
In preparation for marking BlockingResult [[nodiscard]], there are a few places that perform infinite waits, which we never observe the result of the wait. Instead of suppressing them, add an alternate function which returns void when performing and infinite wait.
Diffstat (limited to 'Kernel/Devices')
-rw-r--r--Kernel/Devices/SB16.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Devices/SB16.cpp b/Kernel/Devices/SB16.cpp
index 5b3a90131a..d16fa97721 100644
--- a/Kernel/Devices/SB16.cpp
+++ b/Kernel/Devices/SB16.cpp
@@ -239,7 +239,7 @@ void SB16::handle_irq(const RegisterState&)
void SB16::wait_for_irq()
{
- m_irq_queue.wait_on({}, "SB16");
+ m_irq_queue.wait_forever("SB16");
disable_irq();
}