diff options
author | Robin Gareus <robin@gareus.org> | 2018-12-04 22:12:43 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-12-04 22:12:43 +0100 |
commit | 5f3672eef0f2642009459b1b9f921b796f5adcf7 (patch) | |
tree | 1991fe269719a232c0bef09f7c069c15585a2e09 | |
parent | 9f1293bfe5d22c42ee222a5fd5129d8faebd17f5 (diff) |
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.
-rw-r--r-- | libs/ardour/audioengine.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc index 510788180e..e568603020 100644 --- a/libs/ardour/audioengine.cc +++ b/libs/ardour/audioengine.cc @@ -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(); |