From df3dcc879f6c037efcb1285f08d70c76cd570bee Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 26 Nov 2018 18:19:58 -0800 Subject: Get rid of the last ATOMIC macro uses --- Alc/backends/opensl.cpp | 2 +- Alc/mixvoice.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc') diff --git a/Alc/backends/opensl.cpp b/Alc/backends/opensl.cpp index d59ef5f3..9e8e5031 100644 --- a/Alc/backends/opensl.cpp +++ b/Alc/backends/opensl.cpp @@ -580,7 +580,7 @@ static ALCboolean ALCopenslPlayback_start(ALCopenslPlayback *self) if(SL_RESULT_SUCCESS != result) return ALC_FALSE; - ATOMIC_STORE_SEQ(&self->mKillNow, AL_FALSE); + self->mKillNow.store(AL_FALSE); if(althrd_create(&self->mThread, ALCopenslPlayback_mixerProc, self) != althrd_success) { ERR("Failed to start mixer thread\n"); diff --git a/Alc/mixvoice.cpp b/Alc/mixvoice.cpp index 5a1a1d4d..86de61ee 100644 --- a/Alc/mixvoice.cpp +++ b/Alc/mixvoice.cpp @@ -706,7 +706,7 @@ ALboolean MixSource(ALvoice *voice, ALuint SourceID, ALCcontext *Context, ALsize DataPosInt -= BufferListItem->max_samples; buffers_done += BufferListItem->num_buffers; - BufferListItem = ATOMIC_LOAD(&BufferListItem->next, almemory_order_relaxed); + BufferListItem = BufferListItem->next.load(std::memory_order_relaxed); if(!BufferListItem && !(BufferListItem=BufferLoopItem)) { isplaying = false; -- cgit v1.2.3