mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 01:38:52 +00:00
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:
parent
b30081b49a
commit
40bc378d81
Notes:
sideshowbarker
2024-07-18 05:22:23 +09:00
Author: https://github.com/awesomekling
Commit: 40bc378d81
4 changed files with 12 additions and 12 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue