mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
Kernel: Remove unnecessary spinlock in ~Thread::Blocker()
Instead, just VERIFY that nobody is holding the blocker's internal lock.
This commit is contained in:
@@ -41,7 +41,7 @@ bool Thread::Blocker::add_to_blocker_set(Thread::BlockerSet& blocker_set, void*
|
||||
|
||||
Thread::Blocker::~Blocker()
|
||||
{
|
||||
SpinlockLocker lock(m_lock);
|
||||
VERIFY(!m_lock.is_locked());
|
||||
if (m_blocker_set)
|
||||
m_blocker_set->remove_blocker(*this, m_block_data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user