summaryrefslogtreecommitdiff
path: root/Kernel/Thread.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-22 17:01:46 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-23 00:02:09 +0200
commit928929bbe185c03e2277d8265ea689fd61d48cf8 (patch)
tree965fcb1fc776941edd00af1399a8bb59b4a43e21 /Kernel/Thread.h
parent85546af4171c37b6569ea723c3bf28eda6e2894d (diff)
downloadserenity-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.h2
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());
}