From 8f35f464a1b3ae1b8772a4645941a1fb2fec006e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 9 Jan 2019 01:06:19 -0800 Subject: Change a true/false ALenum atomic into a bool --- Alc/alc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/alc.cpp') diff --git a/Alc/alc.cpp b/Alc/alc.cpp index 9b56ea8d..e2ac0bce 100644 --- a/Alc/alc.cpp +++ b/Alc/alc.cpp @@ -1506,7 +1506,7 @@ void ALCcontext_ProcessUpdates(ALCcontext *context) /* Tell the mixer to stop applying updates, then wait for any active * updating to finish, before providing updates. */ - context->HoldUpdates.store(AL_TRUE); + context->HoldUpdates.store(true, std::memory_order_release); while((context->UpdateCount.load(std::memory_order_acquire)&1) != 0) std::this_thread::yield(); @@ -1520,7 +1520,7 @@ void ALCcontext_ProcessUpdates(ALCcontext *context) /* Now with all updates declared, let the mixer continue applying them * so they all happen at once. */ - context->HoldUpdates.store(AL_FALSE); + context->HoldUpdates.store(false, std::memory_order_release); } } -- cgit v1.2.3