kern: update process/thread for new running/termination semantics

This commit is contained in:
Michael Scire authored and SciresM committed 2021-04-11 03:42:16 -07:00
1 parent ec1d9c4c49
commit 256eb92f4c
8 files changed
+76 -82

No files matched your search

@@ -75,11 +75,7 @@ namespace ams::kern::svc {
R_UNLESS(thread.IsNotNull(), svc::ResultInvalidHandle());
/* Try to start the thread. */
R_TRY(thread->Run());
/* If we succeeded, persist a reference to the thread. */
thread->Open();
return ResultSuccess();
return thread->Run();
}
void ExitThread() {