diff options
| author | Moncef Mechri <moncef.mechri@gmail.com> | 2015-07-07 15:30:27 +0200 |
|---|---|---|
| committer | Moncef Mechri <moncef.mechri@gmail.com> | 2015-08-11 03:54:54 +0200 |
| commit | 333f998123f617c6e643103184142d67c090c7fd (patch) | |
| tree | c15cee7b0e9bd21d1c591567a75d0bcc5ebf3bc7 /Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp | |
| parent | a0c524774386c4543c710958bf1c607a91d6f28c (diff) | |
Don't busy wait in the audio thread (ALSA)
When the emulation is paused and the ALSA backend is used, make the audio
thread wait on a condition variable instead of busy-waiting. This commit
fixes bug #7729
Since the ALSA API is not thread-safe, calls to snd_pcm_drop() and snd_pcm_prepare()
in AlsaSound::Clear() are protected by the same mutex as the condition variable in AlsaSound::SoundLoop()
to make sure that we do not call these functions while a call to
snd_pcm_writei() is ongoing.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp')
0 files changed, 0 insertions, 0 deletions
