mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 12:07:45 +00:00
Kernel: Store Thread name as a KString
This commit is contained in:
parent
07599b48de
commit
d5d8fba579
8 changed files with 43 additions and 33 deletions
|
@ -464,6 +464,7 @@ private:
|
|||
process_object.add("kernel", process.is_kernel_process());
|
||||
auto thread_array = process_object.add_array("threads");
|
||||
process.for_each_thread([&](const Thread& thread) {
|
||||
ScopedSpinLock locker(thread.get_lock());
|
||||
auto thread_object = thread_array.add_object();
|
||||
#if LOCK_DEBUG
|
||||
thread_object.add("lock_count", thread.lock_count());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue