Browse Source
kernel/thread: Use a regular pointer for the owner/current process
kernel/thread: Use a regular pointer for the owner/current process
There's no real need to use a shared pointer in these cases, and only makes object management more fragile in terms of how easy it would be to introduce cycles. Instead, just do the simple thing of using a regular pointer. Much of this is just a hold-over from citra anyways. It also doesn't make sense from a behavioral point of view for a process' thread to prolong the lifetime of the process itself (the process is supposed to own the thread, not the other way around).nce_cpp
10 changed files with 41 additions and 39 deletions
-
2src/core/arm/dynarmic/arm_dynarmic.cpp
-
7src/core/core.cpp
-
10src/core/core.h
-
12src/core/hle/kernel/kernel.cpp
-
10src/core/hle/kernel/kernel.h
-
8src/core/hle/kernel/scheduler.cpp
-
12src/core/hle/kernel/svc.cpp
-
8src/core/hle/kernel/thread.cpp
-
8src/core/hle/kernel/thread.h
-
3src/tests/core/arm/arm_test_common.cpp
Write
Preview
Loading…
Cancel
Save
Reference in new issue