summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/process.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-03-06 02:15:35 +0100
committerGitHub <noreply@github.com>2021-03-06 02:15:35 +0100
commit4cf5b860bddbce9a5dd121ab388bdf369a877e02 (patch)
treedee4656dedce8b55888e4199b0013c9fce167e05 /src/core/hle/kernel/process.cpp
parentMerge pull request #6029 from Morph1984/compile-utf8 (diff)
parenthle: kernel: KThread: Rework dummy threads & fix memory leak. (diff)
downloadyuzu-4cf5b860bddbce9a5dd121ab388bdf369a877e02.tar
yuzu-4cf5b860bddbce9a5dd121ab388bdf369a877e02.tar.gz
yuzu-4cf5b860bddbce9a5dd121ab388bdf369a877e02.tar.bz2
yuzu-4cf5b860bddbce9a5dd121ab388bdf369a877e02.tar.lz
yuzu-4cf5b860bddbce9a5dd121ab388bdf369a877e02.tar.xz
yuzu-4cf5b860bddbce9a5dd121ab388bdf369a877e02.tar.zst
yuzu-4cf5b860bddbce9a5dd121ab388bdf369a877e02.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/process.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp
index 73b85d6f9..9d5956ead 100644
--- a/src/core/hle/kernel/process.cpp
+++ b/src/core/hle/kernel/process.cpp
@@ -40,8 +40,9 @@ namespace {
void SetupMainThread(Core::System& system, Process& owner_process, u32 priority, VAddr stack_top) {
const VAddr entry_point = owner_process.PageTable().GetCodeRegionStart();
ASSERT(owner_process.GetResourceLimit()->Reserve(LimitableResource::Threads, 1));
- auto thread_res = KThread::Create(system, ThreadType::User, "main", entry_point, priority, 0,
- owner_process.GetIdealCoreId(), stack_top, &owner_process);
+ auto thread_res =
+ KThread::CreateUserThread(system, ThreadType::User, "main", entry_point, priority, 0,
+ owner_process.GetIdealCoreId(), stack_top, &owner_process);
std::shared_ptr<KThread> thread = std::move(thread_res).Unwrap();