diff options
author | Chris Robinson <[email protected]> | 2018-11-06 21:33:08 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-06 21:33:08 -0800 |
commit | 3cb0999a2332f0b58aa94c8b7897b55926b08ae6 (patch) | |
tree | 9401d98c016f913846b26b69a7531238b7be8775 | |
parent | aeb3849904f1a3c700e2340cbf26addda7b8f8da (diff) |
Use the proper enum values for atomic ops
-rw-r--r-- | Alc/backends/dsound.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/backends/dsound.cpp b/Alc/backends/dsound.cpp index 4edad4e4..e5efe706 100644 --- a/Alc/backends/dsound.cpp +++ b/Alc/backends/dsound.cpp @@ -267,7 +267,7 @@ FORCE_ALIGN static int ALCdsoundPlayback_mixerProc(ALCdsoundPlayback *self) bool Playing{false}; DWORD LastCursor{0u}; Buffer->GetCurrentPosition(&LastCursor, nullptr); - while(!self->killNow.load(almemory_order_acquire) && + while(!self->killNow.load(std::memory_order_acquire) && ATOMIC_LOAD(&device->Connected, almemory_order_acquire)) { // Get current play cursor @@ -623,7 +623,7 @@ retry_open: static ALCboolean ALCdsoundPlayback_start(ALCdsoundPlayback *self) { try { - self->killNow.store(AL_FALSE, almemory_order_release); + self->killNow.store(AL_FALSE, std::memory_order_release); self->thread = std::thread(ALCdsoundPlayback_mixerProc, self); return ALC_TRUE; } @@ -637,7 +637,7 @@ static ALCboolean ALCdsoundPlayback_start(ALCdsoundPlayback *self) static void ALCdsoundPlayback_stop(ALCdsoundPlayback *self) { - if(self->killNow.exchange(AL_TRUE, almemory_order_acq_rel) || !self->thread.joinable()) + if(self->killNow.exchange(AL_TRUE, std::memory_order_acq_rel) || !self->thread.joinable()) return; self->thread.join(); |