summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/FramebufferManager.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2020-07-22 22:26:20 +0200
committerJosJuice <josjuice@gmail.com>2020-09-15 19:10:56 +0200
commit003696fd7885a73468277bd90d3823179ca6f1a3 (patch)
treea6666a226d1eef65eb710407f3b435e984c8cbea /Source/Core/VideoCommon/FramebufferManager.cpp
parent9c19309a03b3c4096e8648c99ef48935c03c075c (diff)
Android: Fix race condition when exiting emulation
The main activity loads settings essentially as soon as it starts, in order to determine which tab to show. If the process of stopping emulation has not finished at this point, a race condition may be triggered where two IOS kernels are created at once due to the emulation thread loading or saving the SYSCONF while the GUI thread is loading the SYSCONF. To fix this, we can wait for emulation to fully end before returning. Because this race condition is hard to reproduce, I have not been able to test that this actually fixes the race condition, or even that the cause of the race condition is exactly what I believe it is. But I am relatively confident.
Diffstat (limited to 'Source/Core/VideoCommon/FramebufferManager.cpp')
0 files changed, 0 insertions, 0 deletions