summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/evdev
diff options
context:
space:
mode:
authorMoncef Mechri <moncef.mechri@gmail.com>2015-07-07 15:30:27 +0200
committerMoncef Mechri <moncef.mechri@gmail.com>2015-08-11 03:54:54 +0200
commit333f998123f617c6e643103184142d67c090c7fd (patch)
treec15cee7b0e9bd21d1c591567a75d0bcc5ebf3bc7 /Source/Core/InputCommon/ControllerInterface/evdev
parenta0c524774386c4543c710958bf1c607a91d6f28c (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')
0 files changed, 0 insertions, 0 deletions