Use atomic read for an atomic variable

This probably no real world effect since there is a mutex in the
loop that acts as a memory barrier.
This commit is contained in:
Robin Gareus 2018-12-04 22:12:43 +01:00
parent 9f1293bfe5
commit 5f3672eef0
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -578,7 +578,7 @@ AudioEngine::do_devicelist_update()
while (!_stop_hw_devicelist_processing) {
if (_hw_devicelist_update_count) {
if (g_atomic_int_get (&_hw_devicelist_update_count)) {
_devicelist_update_lock.unlock();