mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +00:00
Kernel: Move process thread lists into protected data
This commit is contained in:
parent
1b2ea12062
commit
4916b5c130
4 changed files with 22 additions and 4 deletions
|
@ -1344,7 +1344,7 @@ KResult ProcFSInode::traverse_as_directory(Function<bool(const FS::DirectoryEntr
|
|||
auto process = Process::from_pid(pid);
|
||||
if (!process)
|
||||
return ENOENT;
|
||||
process->for_each_thread([&](Thread& thread) -> IterationDecision {
|
||||
process->for_each_thread([&](const Thread& thread) -> IterationDecision {
|
||||
int tid = thread.tid().value();
|
||||
callback({ String::number(tid), to_identifier_with_stack(fsid(), tid), 0 });
|
||||
return IterationDecision::Continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue