mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:08:12 +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
4 changed files with 12 additions and 12 deletions
|
@ -522,10 +522,10 @@ public:
|
|||
bool m_should_block { true };
|
||||
};
|
||||
|
||||
class QueueBlocker final : public Blocker {
|
||||
class WaitQueueBlocker final : public Blocker {
|
||||
public:
|
||||
explicit QueueBlocker(WaitQueue&, StringView block_reason = {});
|
||||
virtual ~QueueBlocker();
|
||||
explicit WaitQueueBlocker(WaitQueue&, StringView block_reason = {});
|
||||
virtual ~WaitQueueBlocker();
|
||||
|
||||
virtual Type blocker_type() const override { return Type::Queue; }
|
||||
virtual StringView state_string() const override { return m_block_reason.is_null() ? m_block_reason : "Queue"sv; }
|
||||
|
@ -981,7 +981,7 @@ public:
|
|||
Thread::BlockResult wait_on(WaitQueue& wait_queue, const Thread::BlockTimeout& timeout, Args&&... args)
|
||||
{
|
||||
VERIFY(this == Thread::current());
|
||||
return block<Thread::QueueBlocker>(timeout, wait_queue, forward<Args>(args)...);
|
||||
return block<Thread::WaitQueueBlocker>(timeout, wait_queue, forward<Args>(args)...);
|
||||
}
|
||||
|
||||
BlockResult sleep(clockid_t, const Time&, Time* = nullptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue