1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +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:
Andreas Kling 2021-08-23 00:10:33 +02:00
parent b30081b49a
commit 40bc378d81
4 changed files with 12 additions and 12 deletions

View file

@ -27,13 +27,13 @@ public:
template<class... Args>
Thread::BlockResult wait_on(const Thread::BlockTimeout& timeout, Args&&... args)
{
return Thread::current()->block<Thread::QueueBlocker>(timeout, *this, forward<Args>(args)...);
return Thread::current()->block<Thread::WaitQueueBlocker>(timeout, *this, forward<Args>(args)...);
}
template<class... Args>
void wait_forever(Args&&... args)
{
(void)Thread::current()->block<Thread::QueueBlocker>({}, *this, forward<Args>(args)...);
(void)Thread::current()->block<Thread::WaitQueueBlocker>({}, *this, forward<Args>(args)...);
}
protected: