diff options
author | Chris Robinson <[email protected]> | 2023-12-03 23:36:07 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-12-03 23:36:07 -0800 |
commit | b6a68e8d510610e181d638ff993e327059bd6018 (patch) | |
tree | 3c58b34d96036c3f6036bc96bc8a2f80015b1310 /alc/alc.cpp | |
parent | 859319fa7864ed6a81af1f12c68627ab58bb7a7d (diff) |
Remove some unnecessary atomic wrappers
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index ab4cc7ba..d974777b 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -2514,7 +2514,8 @@ ALC_API void ALC_APIENTRY alcGetInteger64vSOFT(ALCdevice *device, ALCenum pname, refcount = dev->waitForMix(); basecount = dev->mClockBase.load(std::memory_order_relaxed); samplecount = dev->mSamplesDone.load(std::memory_order_relaxed); - } while(refcount != ReadRef(dev->MixCount)); + std::atomic_thread_fence(std::memory_order_acquire); + } while(refcount != dev->MixCount.load(std::memory_order_relaxed)); basecount += nanoseconds{seconds{samplecount}} / dev->Frequency; *values = basecount.count(); } |