aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/winmm.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-26 18:07:52 -0800
committerChris Robinson <[email protected]>2018-11-26 18:07:52 -0800
commit461ef4196ed78a2803325fbda45a035ed5e6cf71 (patch)
treebf92d6f96cca8e296e88766d3213950a1f797635 /Alc/backends/winmm.cpp
parent1a9edd4e35ff15bef8662313a9982f62732f5055 (diff)
Avoid using ATOMIC_LOAD on ALCdevice::Connected
Diffstat (limited to 'Alc/backends/winmm.cpp')
-rw-r--r--Alc/backends/winmm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/backends/winmm.cpp b/Alc/backends/winmm.cpp
index b4651b4c..2524ecc1 100644
--- a/Alc/backends/winmm.cpp
+++ b/Alc/backends/winmm.cpp
@@ -206,7 +206,7 @@ FORCE_ALIGN int ALCwinmmPlayback_mixerProc(ALCwinmmPlayback *self)
ALCwinmmPlayback_lock(self);
while(!self->mKillNow.load(std::memory_order_acquire) &&
- ATOMIC_LOAD(&device->Connected, almemory_order_acquire))
+ device->Connected.load(std::memory_order_acquire))
{
ALsizei todo = self->Writable.load(std::memory_order_acquire);
if(todo < 1)
@@ -487,7 +487,7 @@ int ALCwinmmCapture_captureProc(ALCwinmmCapture *self)
ALCwinmmCapture_lock(self);
while(!self->mKillNow.load(std::memory_order_acquire) &&
- ATOMIC_LOAD(&device->Connected, almemory_order_acquire))
+ device->Connected.load(std::memory_order_acquire))
{
ALsizei todo = self->Readable.load(std::memory_order_acquire);
if(todo < 1)