diff options
author | Chris Robinson <[email protected]> | 2019-01-09 01:06:19 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-01-09 01:06:19 -0800 |
commit | 8f35f464a1b3ae1b8772a4645941a1fb2fec006e (patch) | |
tree | 140809f2e7f28f3943f08e16c813730bfd5749c8 /Alc | |
parent | b49c45d3a462a16c72bd824cd40e3b37d6e31939 (diff) |
Change a true/false ALenum atomic into a bool
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/alc.cpp | 4 | ||||
-rw-r--r-- | Alc/alcontext.h | 2 |
2 files changed, 3 insertions, 3 deletions
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); } } diff --git a/Alc/alcontext.h b/Alc/alcontext.h index 42c29ecb..fa16859e 100644 --- a/Alc/alcontext.h +++ b/Alc/alcontext.h @@ -90,7 +90,7 @@ struct ALCcontext { * indicates if updates are currently happening). */ RefCount UpdateCount{0u}; - std::atomic<ALenum> HoldUpdates{AL_FALSE}; + std::atomic<bool> HoldUpdates{false}; ALfloat GainBoost{1.0f}; |