aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-19 05:04:17 -0800
committerChris Robinson <[email protected]>2018-11-19 05:04:17 -0800
commitac2a420351a2489fc347689968767a15f863ec77 (patch)
tree262c3a296386959fbcb43bfbbbd93acfef6cb5c5 /OpenAL32/alSource.cpp
parentad5f9d9b22f8860f0c6ca06004c134182dda95df (diff)
Remove the ATOMIC_THREAD_FENCE macro
Diffstat (limited to 'OpenAL32/alSource.cpp')
-rw-r--r--OpenAL32/alSource.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenAL32/alSource.cpp b/OpenAL32/alSource.cpp
index 39f70ab5..2585039f 100644
--- a/OpenAL32/alSource.cpp
+++ b/OpenAL32/alSource.cpp
@@ -3284,7 +3284,7 @@ static ALint64 GetSourceSampleOffset(ALsource *Source, ALCcontext *context, ALui
readPos |= (ALuint64)ATOMIC_LOAD(&voice->position_fraction, almemory_order_relaxed) <<
(32-FRACTIONBITS);
}
- ATOMIC_THREAD_FENCE(almemory_order_acquire);
+ std::atomic_thread_fence(std::memory_order_acquire);
} while(refcount != ATOMIC_LOAD(&device->MixCount, almemory_order_relaxed));
if(voice)
@@ -3331,7 +3331,7 @@ static ALdouble GetSourceSecOffset(ALsource *Source, ALCcontext *context, ALuint
FRACTIONBITS;
readPos |= ATOMIC_LOAD(&voice->position_fraction, almemory_order_relaxed);
}
- ATOMIC_THREAD_FENCE(almemory_order_acquire);
+ std::atomic_thread_fence(std::memory_order_acquire);
} while(refcount != ATOMIC_LOAD(&device->MixCount, almemory_order_relaxed));
offset = 0.0;
@@ -3393,7 +3393,7 @@ static ALdouble GetSourceOffset(ALsource *Source, ALenum name, ALCcontext *conte
readPos = ATOMIC_LOAD(&voice->position, almemory_order_relaxed);
readPosFrac = ATOMIC_LOAD(&voice->position_fraction, almemory_order_relaxed);
}
- ATOMIC_THREAD_FENCE(almemory_order_acquire);
+ std::atomic_thread_fence(std::memory_order_acquire);
} while(refcount != ATOMIC_LOAD(&device->MixCount, almemory_order_relaxed));
offset = 0.0;