mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
Kernel: Remove always-false Thread::drop_thread_count boolean parameter
This commit is contained in:
parent
1e941fc3cc
commit
7e9df6ddba
Notes:
sideshowbarker
2024-07-17 20:10:31 +09:00
Author: https://github.com/IdanHo
Commit: 7e9df6ddba
Pull-request: https://github.com/SerenityOS/serenity/pull/12145
Reviewed-by: https://github.com/linusg ✅
2 changed files with 4 additions and 5 deletions
|
@ -512,14 +512,13 @@ void Thread::finalize()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
drop_thread_count(false);
|
drop_thread_count();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Thread::drop_thread_count(bool initializing_first_thread)
|
void Thread::drop_thread_count()
|
||||||
{
|
{
|
||||||
bool is_last = process().remove_thread(*this);
|
bool is_last = process().remove_thread(*this);
|
||||||
|
if (is_last)
|
||||||
if (!initializing_first_thread && is_last)
|
|
||||||
process().finalize();
|
process().finalize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1412,7 +1412,7 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
void yield_without_releasing_big_lock(VerifyLockNotHeld verify_lock_not_held = VerifyLockNotHeld::Yes);
|
void yield_without_releasing_big_lock(VerifyLockNotHeld verify_lock_not_held = VerifyLockNotHeld::Yes);
|
||||||
void drop_thread_count(bool);
|
void drop_thread_count();
|
||||||
|
|
||||||
mutable IntrusiveListNode<Thread> m_global_thread_list_node;
|
mutable IntrusiveListNode<Thread> m_global_thread_list_node;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue