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 | f499c8177e661b2fadacb28aebb106e4b16c7ab1 (patch) | |
tree | ef0fb41e55a1f453f0e19ec8a122630a5d77cb4f /src/input_common/drivers/mouse.cpp | |
parent | d8b3f665db753e526aa06db5314fb34f0d3e367f (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/drivers/mouse.cpp')
0 files changed, 0 insertions, 0 deletions