diff options
author | Andreas Kling <kling@serenityos.org> | 2021-08-22 17:01:46 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-23 00:02:09 +0200 |
commit | 928929bbe185c03e2277d8265ea689fd61d48cf8 (patch) | |
tree | 965fcb1fc776941edd00af1399a8bb59b4a43e21 /Kernel/Thread.h | |
parent | 85546af4171c37b6569ea723c3bf28eda6e2894d (diff) | |
download | serenity-928929bbe185c03e2277d8265ea689fd61d48cf8.zip |
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().
Diffstat (limited to 'Kernel/Thread.h')
-rw-r--r-- | Kernel/Thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Thread.h b/Kernel/Thread.h index 983fc83d4a..8bb7ed1d6e 100644 --- a/Kernel/Thread.h +++ b/Kernel/Thread.h @@ -398,7 +398,7 @@ public: virtual ~BlockerSet() { - SpinlockLocker lock(m_lock); + VERIFY(!m_lock.is_locked()); VERIFY(m_blockers.is_empty()); } |