mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
Kernel: VERIFY that nobody is holding lock in ~BlockerSet()
By the time we end up destroying a BlockerSet, we don't need to take the internal spinlock. And nobody else should be holding it either. So replace the SpinlockLocker with a VERIFY().
This commit is contained in:
parent
85546af417
commit
928929bbe1
Notes:
sideshowbarker
2024-07-18 05:22:30 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/928929bbe18
@ -398,7 +398,7 @@ public:
|
||||
|
||||
virtual ~BlockerSet()
|
||||
{
|
||||
SpinlockLocker lock(m_lock);
|
||||
VERIFY(!m_lock.is_locked());
|
||||
VERIFY(m_blockers.is_empty());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user