Atomic Stores / Loads

This commit is contained in:
degasus
2014-02-03 22:52:34 +01:00
parent 5c646d334a
commit ab124b96c4
2 changed files with 4 additions and 2 deletions

View File

@ -47,7 +47,7 @@ void PulseAudio::SoundLoop()
if (PulseInit())
{
while (m_run_thread && m_pa_connected == 1 && m_pa_error >= 0)
while (m_run_thread.load() && m_pa_connected == 1 && m_pa_error >= 0)
m_pa_error = pa_mainloop_iterate(m_pa_ml, 1, NULL);
if(m_pa_error < 0)