1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:37:35 +00:00

Kernel: Add VERIFY(!m_in_block) when entering Thread::block()

This commit is contained in:
Andreas Kling 2021-08-22 12:26:42 +02:00
parent d60635cb9d
commit 0f03a8aece

View file

@ -855,6 +855,7 @@ public:
SpinlockLocker block_lock(m_block_lock);
// We need to hold m_block_lock so that nobody can unblock a blocker as soon
// as it is constructed and registered elsewhere
VERIFY(!m_in_block);
m_in_block = true;
BlockerType blocker(forward<Args>(args)...);