diff options
author | Lioncash <mathew1800@gmail.com> | 2018-10-15 09:25:11 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-10-15 14:15:56 -0400 |
commit | 5484742fdaf036db03ac7b8c746df5004f74efad (patch) | |
tree | 71f2f25319773fa718ade73b59fccccfbceedb12 /src/core/hle/kernel/process.cpp | |
parent | 59f872a8e06328da18c7fb1948aec76355afb567 (diff) |
core_cpu: Make Cpu scheduler instances unique_ptrs instead of shared_ptrs
Diffstat (limited to 'src/core/hle/kernel/process.cpp')
-rw-r--r-- | src/core/hle/kernel/process.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp index c80b2c5071..073dd5a7d6 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp @@ -153,11 +153,11 @@ void Process::PrepareForTermination() { } }; - auto& system = Core::System::GetInstance(); - stop_threads(system.Scheduler(0)->GetThreadList()); - stop_threads(system.Scheduler(1)->GetThreadList()); - stop_threads(system.Scheduler(2)->GetThreadList()); - stop_threads(system.Scheduler(3)->GetThreadList()); + const auto& system = Core::System::GetInstance(); + stop_threads(system.Scheduler(0).GetThreadList()); + stop_threads(system.Scheduler(1).GetThreadList()); + stop_threads(system.Scheduler(2).GetThreadList()); + stop_threads(system.Scheduler(3).GetThreadList()); } /** |