1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 00:47:36 +00:00

Kernel: Move process thread lists into protected data

This commit is contained in:
Andreas Kling 2021-03-11 14:12:55 +01:00
parent 1b2ea12062
commit 4916b5c130
4 changed files with 22 additions and 4 deletions

View file

@ -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;