Kernel: Rename QueueBlocker => WaitQueueBlocker

This is a Thread::Blocker that blocks on a WaitQueue, so let's call it
a WaitQueueBlocker to improve clarity. :^)
This commit is contained in:
Andreas Kling 2021-08-23 00:10:33 +02:00
parent b30081b49a
commit 40bc378d81
Notes: sideshowbarker 2024-07-18 05:22:23 +09:00
4 changed files with 12 additions and 12 deletions

View file

@ -118,18 +118,18 @@ bool Thread::JoinBlocker::unblock(void* value, bool from_add_blocker)
return true;
}
Thread::QueueBlocker::QueueBlocker(WaitQueue& wait_queue, StringView block_reason)
Thread::WaitQueueBlocker::WaitQueueBlocker(WaitQueue& wait_queue, StringView block_reason)
: m_block_reason(block_reason)
{
if (!add_to_blocker_set(wait_queue, Thread::current()))
m_should_block = false;
}
Thread::QueueBlocker::~QueueBlocker()
Thread::WaitQueueBlocker::~WaitQueueBlocker()
{
}
bool Thread::QueueBlocker::unblock()
bool Thread::WaitQueueBlocker::unblock()
{
{
SpinlockLocker lock(m_lock);