mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-24 23:23:58 +00:00
Kernel: Remove Process::any_thread()
This was a holdover from the old times when each Process had a special main thread with TID 0. Using it was a total crapshoot since it would just return whichever thread was first on the process's thread list. Now that I've removed all uses of it, we don't need it anymore. :^)
This commit is contained in:
parent
24d5855428
commit
f7a75598bb
Notes:
sideshowbarker
2024-07-19 06:36:37 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/f7a75598bb7
2 changed files with 0 additions and 13 deletions
|
@ -4612,17 +4612,6 @@ int Process::sys$profiling_disable(pid_t pid)
|
|||
return 0;
|
||||
}
|
||||
|
||||
Thread& Process::any_thread()
|
||||
{
|
||||
Thread* found_thread = nullptr;
|
||||
for_each_thread([&](auto& thread) {
|
||||
found_thread = &thread;
|
||||
return IterationDecision::Break;
|
||||
});
|
||||
ASSERT(found_thread);
|
||||
return *found_thread;
|
||||
}
|
||||
|
||||
WaitQueue& Process::futex_queue(i32* userspace_address)
|
||||
{
|
||||
auto& queue = m_futex_queues.ensure((FlatPtr)userspace_address);
|
||||
|
|
|
@ -386,8 +386,6 @@ public:
|
|||
|
||||
u16 thread_count() const { return m_thread_count; }
|
||||
|
||||
Thread& any_thread();
|
||||
|
||||
Lock& big_lock() { return m_big_lock; }
|
||||
|
||||
struct ELFBundle {
|
||||
|
|
Loading…
Reference in a new issue