aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alListener.cpp
diff options
context:
space:
mode:
authorChris Robinson <chris.kcat@gmail.com>2018-11-20 10:45:01 -0800
committerChris Robinson <chris.kcat@gmail.com>2018-11-20 10:45:01 -0800
commit191ea90de3994f9e98377ea9318c4c7b6885179c (patch)
tree53d42071b9ff0693b706c956a56f760361a11d41 /OpenAL32/alListener.cpp
parent1e31ac469e129ccd5cde5fb890b31fa8b6815a9b (diff)
Use atomic_flags and atomic<bools>s where appropriate
Diffstat (limited to 'OpenAL32/alListener.cpp')
-rw-r--r--OpenAL32/alListener.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenAL32/alListener.cpp b/OpenAL32/alListener.cpp
index d60f5254..bd004368 100644
--- a/OpenAL32/alListener.cpp
+++ b/OpenAL32/alListener.cpp
@@ -30,10 +30,10 @@
#include "alSource.h"
#define DO_UPDATEPROPS() do { \
- if(!ATOMIC_LOAD(&context->DeferUpdates, almemory_order_acquire)) \
+ if(!context->DeferUpdates.load(std::memory_order_acquire)) \
UpdateListenerProps(context); \
else \
- ATOMIC_STORE(&listener->PropsClean, AL_FALSE, almemory_order_release);\
+ listener->PropsClean.clear(std::memory_order_release); \
} while(0)
@@ -60,10 +60,10 @@ AL_API ALvoid AL_APIENTRY alListenerf(ALenum param, ALfloat value)
if(!(value >= AL_MIN_METERS_PER_UNIT && value <= AL_MAX_METERS_PER_UNIT))
SETERR_GOTO(context, AL_INVALID_VALUE, done, "Listener meters per unit out of range");
context->MetersPerUnit = value;
- if(!ATOMIC_LOAD(&context->DeferUpdates, almemory_order_acquire))
+ if(!context->DeferUpdates.load(std::memory_order_acquire))
UpdateContextProps(context);
else
- ATOMIC_STORE(&context->PropsClean, AL_FALSE, almemory_order_release);
+ context->PropsClean.clear(std::memory_order_release);
break;
default: