diff options
author | Chris Robinson <chris.kcat@gmail.com> | 2023-12-03 23:36:07 -0800 |
---|---|---|
committer | Chris Robinson <chris.kcat@gmail.com> | 2023-12-03 23:36:07 -0800 |
commit | b6a68e8d510610e181d638ff993e327059bd6018 (patch) | |
tree | 3c58b34d96036c3f6036bc96bc8a2f80015b1310 /alc/backends/base.cpp | |
parent | 859319fa7864ed6a81af1f12c68627ab58bb7a7d (diff) |
Remove some unnecessary atomic wrappers
Diffstat (limited to 'alc/backends/base.cpp')
-rw-r--r-- | alc/backends/base.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/backends/base.cpp b/alc/backends/base.cpp index 675d8043..b2b567a6 100644 --- a/alc/backends/base.cpp +++ b/alc/backends/base.cpp @@ -52,7 +52,7 @@ ClockLatency BackendBase::getClockLatency() refcount = mDevice->waitForMix(); ret.ClockTime = mDevice->getClockTime(); std::atomic_thread_fence(std::memory_order_acquire); - } while(refcount != ReadRef(mDevice->MixCount)); + } while(refcount != mDevice->MixCount.load(std::memory_order_relaxed)); /* NOTE: The device will generally have about all but one periods filled at * any given time during playback. Without a more accurate measurement from |