diff options
| author | bunnei <bunneidev@gmail.com> | 2022-01-14 16:36:10 -0800 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2022-01-14 16:44:14 -0800 |
| commit | b52516263dc890550f9d9e5d759cc7055507e017 (patch) | |
| tree | ef0fb41e55a1f453f0e19ec8a122630a5d77cb4f /src/input_common/input_poller.cpp | |
| parent | 18969b5d8e0ec31457e002a33febe19bb2a27fe4 (diff) | |
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.
Diffstat (limited to 'src/input_common/input_poller.cpp')
0 files changed, 0 insertions, 0 deletions
