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:
parent
9f1293bfe5
commit
5f3672eef0
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user