mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:47:35 +00:00
Kernel: Add VERIFY(!m_in_block) when entering Thread::block()
This commit is contained in:
parent
d60635cb9d
commit
0f03a8aece
1 changed files with 1 additions and 0 deletions
|
@ -855,6 +855,7 @@ public:
|
||||||
SpinlockLocker block_lock(m_block_lock);
|
SpinlockLocker block_lock(m_block_lock);
|
||||||
// We need to hold m_block_lock so that nobody can unblock a blocker as soon
|
// We need to hold m_block_lock so that nobody can unblock a blocker as soon
|
||||||
// as it is constructed and registered elsewhere
|
// as it is constructed and registered elsewhere
|
||||||
|
VERIFY(!m_in_block);
|
||||||
m_in_block = true;
|
m_in_block = true;
|
||||||
BlockerType blocker(forward<Args>(args)...);
|
BlockerType blocker(forward<Args>(args)...);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue