mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 20:32:56 +03: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:
parent
a82b5e6e50
commit
39474830a9
Notes:
sideshowbarker
2024-07-18 05:21:15 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/39474830a94
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user