diff options
author | Chris Robinson <[email protected]> | 2018-11-19 05:04:17 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-19 05:04:17 -0800 |
commit | ac2a420351a2489fc347689968767a15f863ec77 (patch) | |
tree | 262c3a296386959fbcb43bfbbbd93acfef6cb5c5 /Alc/backends | |
parent | ad5f9d9b22f8860f0c6ca06004c134182dda95df (diff) |
Remove the ATOMIC_THREAD_FENCE macro
Diffstat (limited to 'Alc/backends')
-rw-r--r-- | Alc/backends/base.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/backends/base.cpp b/Alc/backends/base.cpp index 61c2fe90..f3a4c60e 100644 --- a/Alc/backends/base.cpp +++ b/Alc/backends/base.cpp @@ -55,11 +55,11 @@ ClockLatency ALCbackend_getClockLatency(ALCbackend *self) ClockLatency ret; do { - while(((refcount=ATOMIC_LOAD(&device->MixCount, almemory_order_acquire))&1)) + while(((refcount=device->MixCount.load(std::memory_order_acquire))&1)) althrd_yield(); ret.ClockTime = GetDeviceClockTime(device); - ATOMIC_THREAD_FENCE(almemory_order_acquire); - } while(refcount != ATOMIC_LOAD(&device->MixCount, almemory_order_relaxed)); + std::atomic_thread_fence(std::memory_order_acquire); + } while(refcount != device->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 |