mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-03 14:50:02 +00:00
Kernel: Add VERIFY(!m_in_block) when entering Thread::block()
This commit is contained in:
parent
d60635cb9d
commit
0f03a8aece
Notes:
sideshowbarker
2024-07-18 05:22:57 +09:00
Author: https://github.com/awesomekling
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