bunnei f499c8177e core: hle: kernel: KThread: Integrate with KWorkerTask and implement DoWorkerTaskImpl.
- This is used to terminate a thread asynchronously after it has been exited.
- This fixes a crash that can occur in Pokemon Sword/Shield because a thread is incorrectly closed on svcExitThread, then, the thread is destroyed on svcCloseHandle while it is still scheduled.
- Instead, we now wait for the thread to no longer be scheduled on all cores before destroying it from KWorkerTaskManager, which is accurate to HOS behavior.
2022-01-14 16:44:14 -08:00
..
2021-11-03 21:42:57 -04:00
2021-11-03 21:42:57 -04:00
2021-11-03 21:42:57 -04:00
2021-12-05 19:00:29 -05:00
2021-12-07 16:58:23 -05:00
2021-11-03 21:42:57 -04:00
2021-11-03 21:42:57 -04:00
2021-11-03 21:42:57 -04:00
2021-11-03 21:42:57 -04:00
2021-11-03 21:42:57 -04:00
2021-11-03 21:42:57 -04:00
2021-11-03 21:42:57 -04:00
2021-11-03 21:42:57 -04:00
2021-11-03 21:42:57 -04:00
2021-11-03 21:42:57 -04:00
2021-11-03 21:42:57 -04:00