1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:48:11 +00:00

Kernel: Remove unused WaitQueue::should_block(bool)

Nothing ever changed the state of WaitQueue::m_should_block, so this
removes the variable entirely.
This commit is contained in:
Andreas Kling 2021-08-23 01:28:12 +02:00
parent e51a5e2d5d
commit a82b5e6e50
2 changed files with 2 additions and 9 deletions

View file

@ -18,12 +18,6 @@ public:
u32 wake_n(u32 wake_count);
u32 wake_all();
void should_block(bool block)
{
SpinlockLocker lock(m_lock);
m_should_block = block;
}
template<class... Args>
Thread::BlockResult wait_on(const Thread::BlockTimeout& timeout, Args&&... args)
{
@ -41,7 +35,6 @@ protected:
private:
bool m_wake_requested { false };
bool m_should_block { true };
};
}