early-access version 1504

This commit is contained in:
pineappleEA
2021-03-06 02:58:44 +01:00
parent 3fd627d0ba
commit af9a947c65
12 changed files with 62 additions and 59 deletions

View File

@@ -991,6 +991,10 @@ void KThread::SetState(ThreadState state) {
}
}
std::shared_ptr<Common::Fiber>& KThread::GetHostContext() {
return host_context;
}
ResultVal<std::shared_ptr<KThread>> KThread::CreateThread(Core::System& system,
ThreadType type_flags, std::string name,
VAddr entry_point, u32 priority, u64 arg,
@@ -1024,7 +1028,7 @@ ResultVal<std::shared_ptr<KThread>> KThread::CreateThread(
if (thread_result.Succeeded()) {
(*thread_result)->host_context =
std::make_unique<Common::Fiber>(std::move(thread_start_func), thread_start_parameter);
std::make_shared<Common::Fiber>(std::move(thread_start_func), thread_start_parameter);
}
return thread_result;