diff options
author | Chris Robinson <[email protected]> | 2018-11-26 18:19:58 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-26 18:19:58 -0800 |
commit | df3dcc879f6c037efcb1285f08d70c76cd570bee (patch) | |
tree | b12c5a6e72d10feb22d2206d0bd2d4b2bfeb16a0 /Alc | |
parent | 461ef4196ed78a2803325fbda45a035ed5e6cf71 (diff) |
Get rid of the last ATOMIC macro uses
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/backends/opensl.cpp | 2 | ||||
-rw-r--r-- | Alc/mixvoice.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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; |