diff options
author | Chris Robinson <[email protected]> | 2018-11-26 14:31:54 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-26 14:31:54 -0800 |
commit | a6923790fac739f0b98db6c06bc93543b9707556 (patch) | |
tree | e30677dd529ba0a2fecb6cbd6232f862acdc27dd /Alc/alc.cpp | |
parent | 5b2b96b24598636e35f1fe7ecf868b09571065d6 (diff) |
Avoid using ATOMIC_INIT
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r-- | Alc/alc.cpp | 4 |
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; |