aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-26 14:31:54 -0800
committerChris Robinson <[email protected]>2018-11-26 14:31:54 -0800
commita6923790fac739f0b98db6c06bc93543b9707556 (patch)
treee30677dd529ba0a2fecb6cbd6232f862acdc27dd /Alc/alc.cpp
parent5b2b96b24598636e35f1fe7ecf868b09571065d6 (diff)
Avoid using ATOMIC_INIT
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r--Alc/alc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp
index a3c6b5bd..ea72757c 100644
--- a/Alc/alc.cpp
+++ b/Alc/alc.cpp
@@ -2534,7 +2534,7 @@ static ALvoid InitContext(ALCcontext *Context)
sizeof(struct ALeffectslotArray)));
auxslots->count = 0;
}
- ATOMIC_INIT(&Context->ActiveAuxSlots, auxslots);
+ Context->ActiveAuxSlots.store(auxslots, std::memory_order_relaxed);
//Set globals
Context->mDistanceModel = DistanceModel::Default;
@@ -2850,7 +2850,7 @@ void AllocateVoices(ALCcontext *context, ALsizei num_voices, ALsizei old_sends)
/* Finish setting the voices' property set pointers and references. */
for(;v < num_voices;v++)
{
- ATOMIC_INIT(&voice->Update, static_cast<ALvoiceProps*>(nullptr));
+ voice->Update.store(nullptr, std::memory_order_relaxed);
voice->Props = props;
voices[v] = voice;