diff options
author | Andreas Kling <kling@serenityos.org> | 2021-08-23 00:10:33 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-23 00:10:33 +0200 |
commit | 40bc378d81ba9b378e505621291d5d5145a58bcc (patch) | |
tree | 1256bd10f6667f3d684bb85c1f01c0ca8e2a9e11 /Kernel/WaitQueue.cpp | |
parent | b30081b49ac91953073fec0420652cb605a85388 (diff) | |
download | serenity-40bc378d81ba9b378e505621291d5d5145a58bcc.zip |
Kernel: Rename QueueBlocker => WaitQueueBlocker
This is a Thread::Blocker that blocks on a WaitQueue, so let's call it
a WaitQueueBlocker to improve clarity. :^)
Diffstat (limited to 'Kernel/WaitQueue.cpp')
-rw-r--r-- | Kernel/WaitQueue.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/WaitQueue.cpp b/Kernel/WaitQueue.cpp index 65c74b3bdb..4a1d19a322 100644 --- a/Kernel/WaitQueue.cpp +++ b/Kernel/WaitQueue.cpp @@ -32,7 +32,7 @@ u32 WaitQueue::wake_one() bool did_unblock_one = unblock_all_blockers_whose_conditions_are_met_locked([&](Thread::Blocker& b, void* data, bool& stop_iterating) { VERIFY(data); VERIFY(b.blocker_type() == Thread::Blocker::Type::Queue); - auto& blocker = static_cast<Thread::QueueBlocker&>(b); + auto& blocker = static_cast<Thread::WaitQueueBlocker&>(b); dbgln_if(WAITQUEUE_DEBUG, "WaitQueue @ {}: wake_one unblocking {}", this, data); if (blocker.unblock()) { stop_iterating = true; @@ -57,7 +57,7 @@ u32 WaitQueue::wake_n(u32 wake_count) bool did_unblock_some = unblock_all_blockers_whose_conditions_are_met_locked([&](Thread::Blocker& b, void* data, bool& stop_iterating) { VERIFY(data); VERIFY(b.blocker_type() == Thread::Blocker::Type::Queue); - auto& blocker = static_cast<Thread::QueueBlocker&>(b); + auto& blocker = static_cast<Thread::WaitQueueBlocker&>(b); dbgln_if(WAITQUEUE_DEBUG, "WaitQueue @ {}: wake_n unblocking {}", this, data); VERIFY(did_wake < wake_count); if (blocker.unblock()) { @@ -82,7 +82,7 @@ u32 WaitQueue::wake_all() bool did_unblock_any = unblock_all_blockers_whose_conditions_are_met_locked([&](Thread::Blocker& b, void* data, bool&) { VERIFY(data); VERIFY(b.blocker_type() == Thread::Blocker::Type::Queue); - auto& blocker = static_cast<Thread::QueueBlocker&>(b); + auto& blocker = static_cast<Thread::WaitQueueBlocker&>(b); dbgln_if(WAITQUEUE_DEBUG, "WaitQueue @ {}: wake_all unblocking {}", this, data); |