summaryrefslogtreecommitdiff
path: root/src/input_common/input_engine.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2022-01-14 16:02:57 -0800
committerGravatar bunnei2022-01-14 16:02:57 -0800
commitcc112f971ebd6bcd0e891d21a8ddb8ee4dbe2dbc (patch)
tree1f665d6c8c44b27558ce5abe3a3b6cc878863131 /src/input_common/input_engine.cpp
parentMerge pull request #7699 from bunnei/fix-service-thread-race (diff)
downloadyuzu-cc112f971ebd6bcd0e891d21a8ddb8ee4dbe2dbc.tar.gz
yuzu-cc112f971ebd6bcd0e891d21a8ddb8ee4dbe2dbc.tar.xz
yuzu-cc112f971ebd6bcd0e891d21a8ddb8ee4dbe2dbc.zip
hle: kernel: Fix service_threads access to be thread safe V2.
- PR #7699 attempted to fix CreateServiceThread and ReleaseServiceThread to be thread safe, but inadvertently introduced a possible dead-lock. - With this PR, we use a worker thread to manage the service thread list, allowing it only to be accessed by a single thread, and guaranteeing threads will not destroy themselves. - Fixes a rare crash in Pokemon Sword/Shield, I've now run this game for ~12 hours non-stop and am quite confident this is a good solution for this issue.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions