diff options
author | LC <mathew1800@gmail.com> | 2020-07-16 20:16:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-16 20:16:57 +0200 |
commit | d84d9a64b36013e2745f019f0b6f422f8ed1fd32 (patch) | |
tree | 4e43bcb0312811d74b78ed23014d96e4149b3f1c /src/core/hle/kernel/kernel.cpp | |
parent | Merge pull request #4261 from ameerj/gc-calibration (diff) | |
parent | kernel: Add missing include (diff) | |
download | yuzu-d84d9a64b36013e2745f019f0b6f422f8ed1fd32.tar yuzu-d84d9a64b36013e2745f019f0b6f422f8ed1fd32.tar.gz yuzu-d84d9a64b36013e2745f019f0b6f422f8ed1fd32.tar.bz2 yuzu-d84d9a64b36013e2745f019f0b6f422f8ed1fd32.tar.lz yuzu-d84d9a64b36013e2745f019f0b6f422f8ed1fd32.tar.xz yuzu-d84d9a64b36013e2745f019f0b6f422f8ed1fd32.tar.zst yuzu-d84d9a64b36013e2745f019f0b6f422f8ed1fd32.zip |
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 6e2014e08..e1c7a0f3b 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -161,13 +161,14 @@ struct KernelCore::Impl { void InitializeSuspendThreads() { for (std::size_t i = 0; i < Core::Hardware::NUM_CPU_CORES; i++) { std::string name = "Suspend Thread Id:" + std::to_string(i); - std::function<void(void*)> init_func = - system.GetCpuManager().GetSuspendThreadStartFunc(); + std::function<void(void*)> init_func = Core::CpuManager::GetSuspendThreadStartFunc(); void* init_func_parameter = system.GetCpuManager().GetStartFuncParamater(); - ThreadType type = + const auto type = static_cast<ThreadType>(THREADTYPE_KERNEL | THREADTYPE_HLE | THREADTYPE_SUSPEND); - auto thread_res = Thread::Create(system, type, name, 0, 0, 0, static_cast<u32>(i), 0, - nullptr, std::move(init_func), init_func_parameter); + auto thread_res = + Thread::Create(system, type, std::move(name), 0, 0, 0, static_cast<u32>(i), 0, + nullptr, std::move(init_func), init_func_parameter); + suspend_threads[i] = std::move(thread_res).Unwrap(); } } |