dolphin/Source
Léo Lam 7c46497f04 Fix a race condition when shutting down audio stream
The main EmuThread (in Core) is responsible for both initialising the
audio stream and shutting it down properly.

When the core is shutting down (when state is State::PowerDown), it is
possible that the CPU or CPU-GPU thread and the UI thread will both
try to stop the audio stream at the same time, which is an issue
because some audio backends such as cubeb are not thread-safe.

This commit prevents the race from ever happening in the first place
by removing the call to AudioCommon::SetSoundStreamRunning from
CPU::RunAdjacentSystems, which is actually completely unnecessary when
shutting down because Core::EmuThread is going to stop the stream and
perform more cleanup anyway.

Should fix https://bugs.dolphin-emu.org/issues/11722
2019-05-11 16:36:42 +02:00
..
Android Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
Core Fix a race condition when shutting down audio stream 2019-05-11 16:36:42 +02:00
DSPSpy
DSPTool
PCH
UnitTests Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
VSProps Added FreeSurround to Externals 2019-02-13 22:52:39 -02:00
.clang-format
CMakeLists.txt Require CMake 3.10 and use CMAKE_CXX_STANDARD 2019-05-05 00:13:13 +02:00
dolphin-emu.sln Move Updater to WinUpdater 2019-04-10 10:46:49 +02:00