From 05cdc2cb3002e0c9a20764a1e4e6a0e4de5e809e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 4 Feb 2019 21:28:37 -0800 Subject: Use relaxed memory ordering for initializing atomic_flags --- OpenAL32/Include/alAuxEffectSlot.h | 2 +- OpenAL32/Include/alListener.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenAL32/Include') diff --git a/OpenAL32/Include/alAuxEffectSlot.h b/OpenAL32/Include/alAuxEffectSlot.h index 61865397..de9e14a4 100644 --- a/OpenAL32/Include/alAuxEffectSlot.h +++ b/OpenAL32/Include/alAuxEffectSlot.h @@ -113,7 +113,7 @@ struct ALeffectslot { */ alignas(16) ALfloat WetBuffer[MAX_EFFECT_CHANNELS][BUFFERSIZE]; - ALeffectslot() { PropsClean.test_and_set(); } + ALeffectslot() { PropsClean.test_and_set(std::memory_order_relaxed); } ALeffectslot(const ALeffectslot&) = delete; ALeffectslot& operator=(const ALeffectslot&) = delete; ~ALeffectslot(); diff --git a/OpenAL32/Include/alListener.h b/OpenAL32/Include/alListener.h index 7b5b8b20..4d59dbf9 100644 --- a/OpenAL32/Include/alListener.h +++ b/OpenAL32/Include/alListener.h @@ -51,7 +51,7 @@ struct ALlistener { DistanceModel mDistanceModel; } Params; - ALlistener() { PropsClean.test_and_set(); } + ALlistener() { PropsClean.test_and_set(std::memory_order_relaxed); } }; void UpdateListenerProps(ALCcontext *context); -- cgit v1.2.3